Skip to content

Commit

Permalink
feat: tag with commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Nov 22, 2024
1 parent f2b96b9 commit 7f9f9a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME_APP}}
# Added type=sha to the default
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Log in to Github Container Registry
uses: docker/login-action@v3
Expand All @@ -69,6 +76,13 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.IMAGE_NAME_SCREENSHOT}}
# Added type=sha to the default
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Build and push Docker image
id: push-screenshot
Expand Down

0 comments on commit 7f9f9a8

Please sign in to comment.