From bbd3e68e4f4e89279536148cf442dce79de8e7b1 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Sun, 31 Mar 2024 11:51:08 -0400 Subject: [PATCH] CI: Build "nightly" tag for docker --- .github/workflows/ci-docker.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index 3c2c05fc..b56599dc 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -35,12 +35,22 @@ 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=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: ${{ steps.meta.outputs.tags }} + tags: ${{ env.IMAGE_TAG }} labels: ${{ steps.meta.outputs.labels }}