Skip to content

Commit

Permalink
add support for a docker image tag using the commit sha (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk authored Dec 8, 2023
1 parent 025687b commit dc6bb39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ jobs:
with:
images: ghcr.io/nerves-hub/nerves-hub
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# short sha
type=sha,enable={{is_default_branch}},prefix=,suffix=,format=short
# latest tag for main branch
type=raw,enable={{is_default_branch}},value=latest
# tag event (eg. "v1.2.3")
type=ref,event=tag
Expand Down

0 comments on commit dc6bb39

Please sign in to comment.