Skip to content

Commit

Permalink
tag pushed docker images differently
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh committed Nov 18, 2024
1 parent 2fbd601 commit 36f682e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/discord_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ jobs:
id-token: write

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Get Bot Version
uses: sravinet/[email protected]
id: version
with:
file: ./tools/od_ref_bot/Cargo.toml
field: package.version

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
Expand All @@ -46,6 +56,10 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=edge
type=semver,pattern={{version}},value=${{ steps.version.outputs.value }}
type=raw,value=${{ steps.version.outputs.value }}-${{ github.event.head_commit.id }}
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 36f682e

Please sign in to comment.