From c1e91080ac987c25d7adbf845c920ca6656f234d Mon Sep 17 00:00:00 2001 From: Lee Evans Date: Thu, 14 Nov 2024 07:56:22 -0500 Subject: [PATCH] fix tags in docker_meta step --- .github/workflows/build-and-push-docker-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index a582c90..8b13c6b 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -22,7 +22,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ env.DOCKER_IMAGE }} + key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- @@ -34,7 +34,7 @@ jobs: tags: | type=semver,pattern={{version}} # Tag based on Git semantic version tag (e.g., "2.2.0") type=sha # Tag based on commit SHA (e.g., "mycontainer:") - type=latest # Static "latest" tag + type=raw,value=latest # Static "latest" tag labels: | org.opencontainers.image.version={{version}} org.opencontainers.image.source={{source}} @@ -60,7 +60,7 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - + - name: Build and push id: docker_build uses: docker/build-push-action@v4