File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 SERVER_DATABASE_URL : ${{ inputs.command == 'prod' && secrets.PROD_DATABASE_URL || secrets.DEV_DATABASE_URL }}
2323 SERVER_CONFIG : ${{ inputs.command == 'prod' && secrets.PROD_CONFIG || secrets.DEV_CONFIG }}
2424 AWS_ECR_URI : ${{ secrets.AWS_ECR_URI }}
25+ DOCKER_FILE : ${{ inputs.command == 'prod' && 'prod.dockerfile' || 'dev.dockerfile' }}
2526 DOCKER_IMAGE_TAG : ${{ inputs.command == 'prod' && '' || '-dev' }}
2627 DEPLOY_PATH : choose-tale/Backend
2728 BRANCH : ${{github.ref_name}}
5556
5657 - name : aws ecr build
5758 run : |
58- docker build -f dev.dockerfile -t ${{ secrets.AWS_ECR_URI }}/choosetale:backend${{ env.DOCKER_IMAGE_TAG }} .
59+ docker build -f ${{ env.DOCKER_FILE }} -e DATABASE_URL=${{ env.SERVER_DATABASE_URL }} -t ${{ secrets.AWS_ECR_URI }}/choosetale:backend${{ env.DOCKER_IMAGE_TAG }} .
5960
6061 - name : aws ecr push
6162 run : |
You can’t perform that action at this time.
0 commit comments