From 970e5294abc19e06bef93b091960b2c381874c92 Mon Sep 17 00:00:00 2001 From: David Stancu Date: Wed, 4 Sep 2024 15:37:48 -0400 Subject: [PATCH] read HEAD tag and apply in docker/metadata-action --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 162f0d6..ae2279e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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