Skip to content

Commit

Permalink
Tag the images
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Nov 22, 2023
1 parent 2f34b2d commit 8757718
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-native-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build application with Buildpacks
run: |
./mvnw -Pnative -DskipTests clean spring-boot:build-image -Dspring-boot.build-image.imageName=${{ env.DOCKER_IMAGE_NAME }}
./mvnw -Pnative -DskipTests clean spring-boot:build-image -Dspring-boot.build-image.imageName=${{ env.DOCKER_IMAGE_NAME }}
- name: Login to Docker Registry
env:
Expand All @@ -47,9 +47,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Tag the native (GraalVM) Docker image
- name: Tag the native (GraalVM) Docker image as "latest"
run: |
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ steps.meta.outputs.tags }}
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ env.DOCKER_IMAGE_NAME }}:latest
- name: Tag the native (GraalVM) Docker image with the current tag, if it exists
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ env.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}
- name: Push the native (GraalVM) Docker image
run: |
Expand Down

0 comments on commit 8757718

Please sign in to comment.