-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |