File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,15 @@ jobs:
6464 password : ${{ secrets.GITHUB_TOKEN }}
6565
6666
67+ - name : 🔧 Setup image name
68+ run : echo "IMAGE_LOWER=$(echo '${{ env.IMAGE_NAME }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
69+
70+
6771 - name : 📝 Extract metadata
6872 id : meta
6973 uses : docker/metadata-action@v5
7074 with :
71- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
75+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_LOWER }}
7276 tags : |
7377 type=ref,event=branch
7478 type=sha,prefix={{branch}}-
9599 username : ${{ env.RASPBERRY_PI_USER }}
96100 key : ${{ secrets.RASPBERRY_PI_SSH_KEY }}
97101 port : 2022
98- envs : MYSQL_ROOT_PASSWORD,MYSQL_DATABASE,MYSQL_USER,MYSQL_PASSWORD
99102 script : |
100103 cd /home/yoon/goormthon-java
101104 git pull origin main
@@ -110,8 +113,9 @@ jobs:
110113
111114 echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
112115
113- docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
114- docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 dormung-springboot:latest
116+ export IMAGE_LOWER=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
117+ docker pull ${{ env.REGISTRY }}/$IMAGE_LOWER:${{ github.sha }}-arm64
118+ docker tag ${{ env.REGISTRY }}/$IMAGE_LOWER:${{ github.sha }}-arm64 dormung-springboot:latest
115119
116120 chmod +x deploy.sh
117121 ./deploy.sh deploy
You can’t perform that action at this time.
0 commit comments