Skip to content

Commit

Permalink
CI: Set docker tag update logic
Browse files Browse the repository at this point in the history
Update latest only on tag, 'nightly' for nightly build, branch name for workflow_dispatch builds
  • Loading branch information
cookpa authored Apr 1, 2024
1 parent 900f9ac commit 5df7248
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
uses: docker/metadata-action@v4
with:
images: antsx/antspy
flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/v') }}
tags: |
type=semver,pattern={{version}}
-
name: Login to DockerHub
if: ${{ github.repository == 'ANTsX/ANTsPy' }}
Expand Down

0 comments on commit 5df7248

Please sign in to comment.