Skip to content

Commit 2de2b9f

Browse files
committed
Fix: ci/cd 단일 워크플로우로 통합
1 parent 3bd5a99 commit 2de2b9f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,19 @@ jobs:
7070
docker build -f "${{ steps.df.outputs.path }}" -t $IMAGE:release -t $IMAGE:$GIT_SHA "${{ steps.df.outputs.ctx }}"
7171
docker push $IMAGE:release
7272
docker push $IMAGE:$GIT_SHA
73+
74+
deploy:
75+
needs: build-and-push
76+
if: github.ref == 'refs/heads/release' && needs.build-and-push.result == 'success'
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Deploy
80+
uses: appleboy/ssh-action@v1.0.3
81+
with:
82+
host: ${{ secrets.CD_HOST }}
83+
username: ${{ secrets.CD_USER }}
84+
key: ${{ secrets.CD_SSH_KEY }}
85+
port: ${{ secrets.CD_PORT }}
86+
script: |
87+
export DEPLOY_TAG=release
88+
bash -lc '/srv/docsa/infra/deploy.sh'

infra/deploy.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)