Skip to content

Commit 97e3cf9

Browse files
Merge pull request #37 from IFRCGo/Hotfix/WN-321
fix
2 parents 4503248 + 581e459 commit 97e3cf9

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/production-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
username: ${{ secrets.REGISTRY_USERNAME }}
3030
password: ${{ secrets.REGISTRY_PASSWORD }}
3131
- run: |
32+
if [ ! -f .env ]; then
33+
touch .env
34+
fi
3235
cp swagger.prod .env
3336
docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:${{ github.sha }} -f ./docker/Dockerfile .
3437
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:latest

.github/workflows/qa-pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
username: ${{ secrets.REGISTRY_USERNAME }}
3535
password: ${{ secrets.REGISTRY_PASSWORD }}
3636
- run: |
37-
cp cp swagger.qa .env
37+
if [ ! -f .env ]; then
38+
touch .env
39+
fi
40+
cp swagger.qa .env
3841
docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:${{ github.sha }} -f ./docker/Dockerfile .
3942
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:latest
4043

0 commit comments

Comments
 (0)