Skip to content

Commit

Permalink
Merge pull request #7 from swaroopar/feature/addLabels
Browse files Browse the repository at this point in the history
add labels to docker image
  • Loading branch information
iskey authored Aug 17, 2023
2 parents ca042f8 + c0bdd33 commit ae24e54
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 ae24e54

Please sign in to comment.