Skip to content

Commit

Permalink
ci: added metadata to the container image
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Figenblat <[email protected]>
  • Loading branch information
TomerFi committed Feb 7, 2024
1 parent 92c2cc9 commit 71006ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- name: Setup qemu
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ vars.PLATFORMS }}

- name: Setup docker buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -70,6 +72,14 @@ jobs:
git tag ${{ steps.bump.outputs.version }} -m "${{ steps.bump.outputs.version }}"
git push origin ${{ steps.bump.outputs.version }}
- name: Extract meta for image
id: meta
uses: docker/metadata-action@v5
with:
images: tomerfi/version-bumper

- run: echo ${{ steps.meta.outputs }}

- name: Set a release name
id: release_name
uses: actions/github-script@v7
Expand Down Expand Up @@ -103,7 +113,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
platforms: ${{ vars.PLATFORMS }}
tags: |
tomerfi/version-bumper:latest
tomerfi/version-bumper:${{ steps.bump.outputs.version }}
Expand Down

0 comments on commit 71006ea

Please sign in to comment.