Skip to content

Commit

Permalink
fix: always build latest only build stable on release
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Oct 10, 2024
1 parent 2569518 commit fd6313c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push latest
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,12 +69,12 @@ jobs:
BASE_APE_IMAGE_TAG=stable
- name: Build and push stable
if: contains(steps.meta.outputs.tag, 'stable') || startsWith(steps.meta.outpus.tag, 'pr-')
if: ${{ github.event_name != 'pull_request' }}
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.stable
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down

0 comments on commit fd6313c

Please sign in to comment.