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: .