Skip to content

Commit 36f682e

Browse files
committed
tag pushed docker images differently
1 parent 2fbd601 commit 36f682e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/discord_build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
id-token: write
2525

2626
steps:
27+
- name: Checkout Repo
28+
uses: actions/checkout@v4
29+
30+
- name: Get Bot Version
31+
uses: sravinet/[email protected]
32+
id: version
33+
with:
34+
file: ./tools/od_ref_bot/Cargo.toml
35+
field: package.version
36+
2737
# Set up BuildKit Docker container builder to be able to build
2838
# multi-platform images and export cache
2939
# https://github.com/docker/setup-buildx-action
@@ -46,6 +56,10 @@ jobs:
4656
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
4757
with:
4858
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
59+
tags: |
60+
type=edge
61+
type=semver,pattern={{version}},value=${{ steps.version.outputs.value }}
62+
type=raw,value=${{ steps.version.outputs.value }}-${{ github.event.head_commit.id }}
4963
5064
# Build and push Docker image with Buildx
5165
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)