Skip to content

Commit

Permalink
CI: fix docker tags
Browse files Browse the repository at this point in the history
Push to "nightly" for nightly builds, push tag name and "latest" for release tags
  • Loading branch information
cookpa authored Apr 1, 2024
1 parent 03fe9e8 commit 900f9ac
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,12 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Set Docker Image Tag
id: set_tag
run: |
if [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "IMAGE_TAG=antsx/antspy:nightly" >> $GITHUB_ENV
else
TAG=${{ steps.meta.outputs.tags }}
echo "IMAGE_TAG=${TAG}" >> $GITHUB_ENV
fi
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
push: ${{ github.repository == 'ANTsX/ANTsPy' }}
tags: ${{ env.IMAGE_TAG }}
tags: ${{ github.event_name == 'schedule' && 'antsx/antspy:nightly' || steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 900f9ac

Please sign in to comment.