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