From 900f9ac6a8a1ec14a6de409d5a71ff5a1fccdcdf Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Mon, 1 Apr 2024 10:08:44 -0400 Subject: [PATCH] CI: fix docker tags Push to "nightly" for nightly builds, push tag name and "latest" for release tags --- .github/workflows/ci-docker.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index abef86aa..32d70215 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -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 }}