5050 distribution : temurin
5151
5252 - name : Cache Maven repository
53- uses : actions/cache@v4
53+ uses : actions/cache@v5
5454 with :
5555 path : ~/.m2/repository
5656 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -87,15 +87,15 @@ jobs:
8787 - uses : actions/checkout@v6
8888
8989 - name : Download build artifacts
90- uses : actions/download-artifact@v6
90+ uses : actions/download-artifact@v7
9191 with :
9292 name : converter-artifacts
9393
9494 - name : Set up Docker Buildx
9595 uses : docker/setup-buildx-action@v4
9696
9797 - name : Build Docker image
98- uses : docker/build-push-action@v6
98+ uses : docker/build-push-action@v7
9999 with :
100100 context : schema-conversion-orchestrator
101101 file : schema-conversion-orchestrator/Dockerfile
@@ -179,10 +179,14 @@ jobs:
179179 - uses : actions/checkout@v6
180180
181181 - name : Download build artifacts
182- uses : actions/download-artifact@v6
182+ uses : actions/download-artifact@v7
183183 with :
184184 name : converter-artifacts
185185
186+ - name : Set lowercase image name
187+ run : |
188+ echo "IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/schema-conversion-orchestrator" >> $GITHUB_ENV
189+
186190 - name : Log in to GitHub Container Registry
187191 uses : docker/login-action@v4
188192 with :
@@ -194,13 +198,13 @@ jobs:
194198 uses : docker/setup-buildx-action@v4
195199
196200 - name : Build and push
197- uses : docker/build-push-action@v6
201+ uses : docker/build-push-action@v7
198202 with :
199203 context : schema-conversion-orchestrator
200204 file : schema-conversion-orchestrator/Dockerfile
201205 push : true
202206 tags : |
203- ghcr.io/ ${{ github.repository_owner }}/schema-conversion-orchestrator :latest
204- ghcr.io/ ${{ github.repository_owner }}/schema-conversion-orchestrator :${{ github.sha }}
207+ ${{ env.IMAGE }}:latest
208+ ${{ env.IMAGE }}:${{ github.sha }}
205209 cache-from : type=gha
206210 cache-to : type=gha,mode=max
0 commit comments