Skip to content

Commit

Permalink
read HEAD tag and apply in docker/metadata-action
Browse files Browse the repository at this point in the history
  • Loading branch information
mach-kernel committed Sep 4, 2024
1 parent 241b33d commit 970e529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- id: tag
name: Read HEAD tag
run: echo "tag=$(git tag --points-at HEAD | head -1)" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -58,6 +61,7 @@ jobs:
tags: |
type=raw,value=latest
type=raw,value=${{ github.ref_name }}
type=raw,value=${{ steps.tag.outputs.tag }}
- uses: actions/download-artifact@v4
with:
name: crd_gen
Expand Down

0 comments on commit 970e529

Please sign in to comment.