Skip to content

Commit 0dda737

Browse files
changed if statement
1 parent 7e8ed1b commit 0dda737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
password: ${{ secrets.DOCKERHUB_TOKEN }}
5050

5151
- name: Production Build and push
52-
if: contains(github.ref, "main")
52+
if: ${{ github.ref == 'refs/heads/main' }}
5353
uses: docker/build-push-action@v2
5454
with:
5555
context: .
@@ -60,7 +60,7 @@ jobs:
6060
cache-to: type=local,dest=/tmp/.buildx-cache-new
6161

6262
- name: Development Build and push
63-
if: contains(github.ref, "develop")
63+
if: ${{ github.ref == 'refs/heads/develop' }}
6464
uses: docker/build-push-action@v2
6565
with:
6666
context: .

0 commit comments

Comments
 (0)