File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments