diff --git a/.github/workflows/production-pipeline.yml b/.github/workflows/production-pipeline.yml index a2604dd..225a9bb 100644 --- a/.github/workflows/production-pipeline.yml +++ b/.github/workflows/production-pipeline.yml @@ -29,6 +29,7 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - run: | + cp swagger.prod .env docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow:${{ github.sha }} -f ./docker/Dockerfile . docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow:latest diff --git a/.github/workflows/qa-pipeline.yml b/.github/workflows/qa-pipeline.yml index 15a2425..31843a8 100644 --- a/.github/workflows/qa-pipeline.yml +++ b/.github/workflows/qa-pipeline.yml @@ -34,7 +34,7 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - run: | - cp .env.qa .env + cp swagger.qa .env docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} -f ./docker/Dockerfile . docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:latest diff --git a/swagger.prod b/swagger.prod new file mode 100644 index 0000000..c8caa5b --- /dev/null +++ b/swagger.prod @@ -0,0 +1 @@ +SWAGGER_URL=https://preparemessages.ifrc.org diff --git a/.env.qa b/swagger.qa similarity index 100% rename from .env.qa rename to swagger.qa