diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 74dd9f1..85b376e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -106,7 +106,7 @@ jobs: - name: Build and load local docker image for PRs or Not Tags uses: docker/build-push-action@v4.1.1 - if: github.event_name == 'pull_request' || !${{contains(github.ref, 'refs/tags/')}} + if: github.event_name == 'pull_request' || !startsWith(github.ref, 'refs/tags/') with: context: . load: true @@ -114,7 +114,7 @@ jobs: - name: Build and load local docker image for Not PRs and Tags uses: docker/build-push-action@v4.1.1 - if: github.event_name != 'pull_request' && (contains(github.ref, 'refs/tags/')) + if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') with: context: . load: true