Skip to content

Commit

Permalink
add labels to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopar committed Aug 17, 2023
1 parent ca042f8 commit c0bdd33
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,20 @@ jobs:
username: ${{ env.BOT_USER_NAME }}
password: ${{ secrets.BOT_GITHUB_DOCKER_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build Docker Image and Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v4.1.1
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.CURRENT_VERSION }}
labels: latest, ${{ env.CURRENT_VERSION }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false

- name: Push POM updates with release version
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit c0bdd33

Please sign in to comment.