diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1fb0e3e9..58facc09 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,7 +58,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push latest - if: contains(steps.meta.outputs.tag, 'latest') || contains(steps.meta.outpus.tag, 'pr-*') || contains(steps.meta.outpus.tag, 'v*') + if: contains(steps.meta.outputs.tag, 'latest') || startsWith(steps.meta.outpus.tag, 'pr-') || startsWith(steps.meta.outpus.tag, 'v') uses: docker/build-push-action@v4 with: context: . @@ -70,7 +70,7 @@ jobs: BASE_APE_IMAGE_TAG=stable - name: Build and push stable - if: contains(steps.meta.outputs.tag, 'stable') || contains(steps.meta.outpus.tag, 'pr-*') + if: contains(steps.meta.outputs.tag, 'stable') || startsWith(steps.meta.outpus.tag, 'pr-') uses: docker/build-push-action@v4 with: context: .