File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - feature/issue-4
87
98jobs :
109 CI-CD :
2928
3029 # docker build & push to production
3130 - name : Docker build & push to prod
32- # if: contains(github.ref, 'main')
33- if : github.ref == 'refs/heads/feature/issue-4'
31+ if : contains(github.ref, 'main')
3432 run : |
3533 docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
3634 docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/embitips_back .
4038 - name : Deploy to prod
4139 uses : appleboy/ssh-action@master
4240 id : deploy-prod
43- # if: contains(github.ref, 'main')
44- if : github.ref == 'refs/heads/feature/issue-4'
41+ if : contains(github.ref, 'main')
4542 with :
4643 host : ${{ secrets.HOST_PROD }} # EC2 퍼블릭 IPv4 DNS
4744 username : ${{ secrets.USERNAME }}
You can’t perform that action at this time.
0 commit comments