Skip to content

Commit

Permalink
Small update to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed May 25, 2024
1 parent 72cc2f6 commit 6030c2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: ["main"]
tags:
- v[0-9]+.[0-9]+.[0-9]+ # Semver Release
- v[0-9]+.[0-9]+.[0-9]+ # Semver Release (non-prerelease)
pull_request:
branches: [main]

Expand All @@ -21,16 +21,19 @@ jobs:
uses: docker/metadata-action@v4
with:
images: hub.opensciencegrid.org/macrostrat/web
# New: apply the 'latest' tag to tagged releases on the default branch
# New: apply the 'latest' tag to non-prerelease semver tags
tags: |
type=raw,value=sha-{{sha}}
type=raw,value=latest-itb
type=match,value=latest,pattern=v\d+.\d+.\d+
type=raw,value=latest-itb-{{date 'YYYYMMDDHHmmss'}}
type=ref,event=pr,suffix=-{{date 'YYYYMMDDHHmmss'}}
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmmss'}}
type=ref,event=tag,suffix=-{{date 'YYYYMMDDHHmmss'}}
type=semver,pattern={{version}}
type=semver,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}-{{date 'YYYYMMDDHHmmss'}}
flavor: |
latest=false
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Login to OSG DockerHub
Expand Down

0 comments on commit 6030c2f

Please sign in to comment.