We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8ed1b commit 0dda737Copy full SHA for 0dda737
.github/workflows/docker-build.yml
@@ -49,7 +49,7 @@ jobs:
49
password: ${{ secrets.DOCKERHUB_TOKEN }}
50
51
- name: Production Build and push
52
- if: contains(github.ref, "main")
+ if: ${{ github.ref == 'refs/heads/main' }}
53
uses: docker/build-push-action@v2
54
with:
55
context: .
@@ -60,7 +60,7 @@ jobs:
60
cache-to: type=local,dest=/tmp/.buildx-cache-new
61
62
- name: Development Build and push
63
- if: contains(github.ref, "develop")
+ if: ${{ github.ref == 'refs/heads/develop' }}
64
65
66
0 commit comments