From 842b3be9baaa8ff705426a4e28ff7ed22445da25 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Fri, 16 Feb 2024 23:24:58 +0000 Subject: [PATCH] Correct latest tag check for container --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f41931..3835a8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: - name: Build the Docker image run: | docker build . --file Dockerfile --tag $DOCKER_CONTAINER:$DOCKER_TAG - [[ "${{ github.ref }}" == "refs/heads/master" ]] && docker tag $DOCKER_CONTAINER:$DOCKER_TAG ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest + [[ "${{ github.ref }}" == "refs/heads/main" ]] && docker tag $DOCKER_CONTAINER:$DOCKER_TAG ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest docker tag $DOCKER_CONTAINER:$DOCKER_TAG ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:$DOCKER_TAG - name: Log in to registry @@ -42,5 +42,5 @@ jobs: - name: Push to GHCR run: | - [[ "${{ github.ref }}" == "refs/heads/master" ]] && docker push ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest + [[ "${{ github.ref }}" == "refs/heads/main" ]] && docker push ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:latest docker push ghcr.io/$DOCKER_OWNER/$DOCKER_CONTAINER:$DOCKER_TAG