Skip to content

Commit a94e38e

Browse files
committed
Pushing the image both in DockerHub and GitHub -GHCR.io in the develop branch
1 parent f5f5c9e commit a94e38e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Publish
33
on:
44
push:
55
branches:
6-
- main
6+
- develop
77

88
jobs:
99
build-and-publish:
@@ -35,7 +35,7 @@ jobs:
3535
ghcr.io/${{ github.repository }}
3636
tags: |
3737
type=ref,event=branch # Tag with branch name
38-
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
38+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }}
3939
4040
- name: Build and push Docker image to Docker Hub and GHCR
4141
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)