Skip to content

Commit 0bda8d7

Browse files
committed
chore : cicd main브랜치 설정 적용
1 parent 6ce0723 commit 0bda8d7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- feature/issue-4
87

98
jobs:
109
CI-CD:
@@ -29,8 +28,7 @@ jobs:
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 .
@@ -40,8 +38,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)