From 85f87b655e0db2342615a529468edab20129559a Mon Sep 17 00:00:00 2001 From: Ernesto Serrano Date: Mon, 9 Dec 2024 10:46:20 +0000 Subject: [PATCH] Rename master branch to main --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acd25f903..5bd4d5442 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,14 +24,14 @@ jobs: if [[ $GITHUB_REF == refs/tags/* ]]; then TAGS="$TAGS,${GITHUB_REPOSITORY}:latest" - elif [[ $VERSION == "master" ]]; then + elif [[ $VERSION == "main" ]]; then TAGS="$TAGS,${GITHUB_REPOSITORY}:beta" fi GHCR_TAGS="${GHCR_IMAGE}:${VERSION}" if [[ $GITHUB_REF == refs/tags/* ]]; then GHCR_TAGS="$GHCR_TAGS,${GHCR_IMAGE}:latest" - elif [[ $VERSION == "master" ]]; then + elif [[ $VERSION == "main" ]]; then GHCR_TAGS="$GHCR_TAGS,${GHCR_IMAGE}:beta" fi @@ -78,7 +78,7 @@ jobs: # Step 8: Build and Push to DockerHub - name: Build and push - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) uses: docker/build-push-action@v6 with: context: . @@ -88,7 +88,7 @@ jobs: # Step 9: Push to GitHub Container Registry - name: Push to GHCR - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) uses: docker/build-push-action@v6 with: context: .