From 8a41cb9c4cb9f7115d6c38dc6c367c51cd88654e Mon Sep 17 00:00:00 2001 From: Praveen Date: Fri, 4 Oct 2024 16:45:21 +0530 Subject: [PATCH] Pushing the image both in DockerHub and GitHub -GHCR.io in the main branch --- .github/workflows/build-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d6156ea..09f721d 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -3,7 +3,7 @@ name: Build and Publish on: push: branches: - - develop + - main jobs: build-and-publish: @@ -35,7 +35,7 @@ jobs: ghcr.io/${{ github.repository }} tags: | type=ref,event=branch # Tag with branch name - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} - name: Build and push Docker image to Docker Hub and GHCR uses: docker/build-push-action@v5