Skip to content

Commit

Permalink
fix sha in PRs, see docker/metadata-action#206
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Jul 20, 2023
1 parent 1e6900a commit e473e5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
tags: |
type=sha,priority=2000
type=semver,pattern={{version}},priority=2100
env:
DOCKER_METADATA_PR_HEAD_SHA: true

- name: Get image name (temporary workaround)
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev-deploy.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
tags: |
type=sha,priority=2000
type=semver,pattern={{version}},priority=2100
env:
DOCKER_METADATA_PR_HEAD_SHA: true

- name: Get image name (temporary workaround)
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Expand Up @@ -50,6 +50,8 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
# Always keep SHA for deploy script to work!
type=sha
env:
DOCKER_METADATA_PR_HEAD_SHA: true

# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit e473e5d

Please sign in to comment.