File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments