Skip to content

Commit

Permalink
fix: 백엔드 CI/CD 트리거 조건 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
capDoYeonLee committed Nov 22, 2023
1 parent dae917b commit 24807e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ name: overflow CI/CD

on:
push:
branches: [ "develop","be" ]
branches: [ "infra" ]
pull_request:
branches: [ "develop","be" ]
branches: [ "infra" ]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
## docker build & push to develop
- name: Docker build & push to dev
working-directory: ./be/overflow
if: contains(github.ref, 'develop')
if: contains(github.ref, 'infra')
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_REPO }}/ecnv-overflow .
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Deploy to dev
uses: appleboy/ssh-action@master
id: deploy-dev
if: contains(github.ref, 'develop')
if: contains(github.ref, 'infra')
with:
host: ${{ secrets.HOST_DEV }}
username: ${{ secrets.USERNAME }}
Expand Down

0 comments on commit 24807e1

Please sign in to comment.