Skip to content

Commit

Permalink
fix: debug stage was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Oct 10, 2024
1 parent fd6313c commit 8d84133
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,25 @@ jobs:
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=tag
type=ref,event=pr
- name: Extract metadata (tags, labels) for Docker (Stable)
id: meta-stable
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=ref,event=tag
type=ref,event=pr
- name: Show tags
run: |
echo "Tags generated by metadata-action:\n"
for tag in ${{ steps.metadata.output.tags }}; do
for tag in ${{ steps.meta.output.tags }}; do
echo $tag
done
echo "Tags generated by metadata-stable-action:\n"
for tag in ${{ steps.meta-stable.output.tags }}; do
echo $tag
done
Expand Down Expand Up @@ -74,9 +85,9 @@ jobs:
with:
context: .
file: ./Dockerfile.stable
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-stable.outputs.tags }}
labels: ${{ steps.meta-stable.outputs.labels }}
build-args: |
BASE_APE_IMAGE_TAG=stable
Expand Down

0 comments on commit 8d84133

Please sign in to comment.