Skip to content

Commit

Permalink
chore: 배포 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed May 27, 2024
1 parent c8a9eb6 commit c02d33c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ jobs:
- name: 이미지 빌드하고 푸쉬하기
id: build-image
run: |
echo "image-tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT &&
chmod +x ./gradlew &&
export IMAGE_TAG=$(git rev-parse --short HEAD) &&
export IMAGE_NAME=${{ secrets.IMAGE_NAME }} &&
./gradlew jib
- name: 도커 배포하기
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: sudo docker service update makers_web --image ${{ secrets.IMAGE_NAME }}:${{ steps.build-image.outputs.image-tag }}

0 comments on commit c02d33c

Please sign in to comment.