Skip to content

Commit

Permalink
fix tags in docker_meta step
Browse files Browse the repository at this point in the history
  • Loading branch information
leeevans authored Nov 14, 2024
1 parent c1ba986 commit c1e9108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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:<commit-sha>")
type=latest # Static "latest" tag
type=raw,value=latest # Static "latest" tag
labels: |
org.opencontainers.image.version={{version}}
org.opencontainers.image.source={{source}}
Expand All @@ -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
Expand Down

0 comments on commit c1e9108

Please sign in to comment.