Skip to content

Commit 9d11d14

Browse files
committed
change deploy.yml
1 parent 5abf539 commit 9d11d14

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,23 @@ jobs:
9999
script: |
100100
cd /home/yoon/goormthon-java
101101
git pull origin main
102-
102+
103103
export BUILD_TAG="${{ github.sha }}"
104+
export DOCKER_REGISTRY="${{ env.REGISTRY }}"
105+
export DOCKER_REPO="${{ env.IMAGE_NAME }}"
104106
export MYSQL_ROOT_PASSWORD="${{ secrets.MYSQL_ROOT_PASSWORD }}"
105107
export MYSQL_DATABASE="${{ secrets.MYSQL_DATABASE }}"
106108
export MYSQL_USER="${{ secrets.MYSQL_USER }}"
107109
export MYSQL_PASSWORD="${{ secrets.MYSQL_PASSWORD }}"
108-
110+
111+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
112+
109113
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
110-
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 dormung-springboot:latest
111-
114+
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 dormung-springboot:latest
115+
116+
chmod +x deploy.sh
112117
./deploy.sh deploy
118+
113119

114120
- name: 🧪 Verify deployment
115121
uses: appleboy/[email protected]

0 commit comments

Comments
 (0)