Skip to content

Commit

Permalink
fix: use startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Oct 10, 2024
1 parent 030c01c commit 2569518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
Expand All @@ -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: .
Expand Down

0 comments on commit 2569518

Please sign in to comment.