Skip to content

Commit

Permalink
Always build docker image on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Dec 18, 2023
1 parent 9e2695e commit 813bf3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ jobs:
permissions:
packages: write
needs: linux
if: startsWith(github.ref, 'refs/tags/jq-')
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -330,7 +329,9 @@ jobs:
id: metadata
with:
images: ghcr.io/${{ github.repository }}
tags: type=match,pattern=jq-(.*),group=1,value=${{ github.ref_name }}
tags: ${{ startsWith(github.ref, 'refs/tags/jq-')
&& format("type=match,pattern=jq-(.*),group=1,value={0}", github.ref_name)
|| "type=sha,format=long" }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -345,7 +346,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ startsWith(github.ref, 'refs/tags/jq-') }}
provenance: false
platforms: linux/386,linux/amd64,linux/arm64,linux/mips64le,linux/ppc64le,linux/riscv64,linux/s390x
tags: ${{ steps.metadata.outputs.tags }}
Expand Down

0 comments on commit 813bf3f

Please sign in to comment.