Skip to content

Commit

Permalink
Pushing the image both in DockerHub and GitHub -GHCR.io in the main b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
Praveenraj-K committed Oct 4, 2024
1 parent eb20355 commit 3e40a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Publish
on:
push:
branches:
- develop
- main

jobs:
build-and-publish:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3e40a0d

Please sign in to comment.