summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-12-19 17:54:53 +0900
committerGitHub <noreply@github.com>2023-12-19 17:54:53 +0900
commit56828b6d0426c826f686bd39a143a909f22b0faf (patch)
tree570e3a77b64a823004f29d06b48e65fbc5f582e0
parent9e2695e117aef8403fa0c5b32ee0f26cb442862a (diff)
Always build Docker image on CI, group Dependabot PRs for official actions (#2997)
* Always build docker image on CI * Revert "Bump actions/download-artifact from 3 to 4" This reverts commit 9e2695e117aef8403fa0c5b32ee0f26cb442862a. * Group Dependabot PRs for official actions
-rw-r--r--.github/dependabot.yml3
-rw-r--r--.github/workflows/ci.yml11
2 files changed, 9 insertions, 5 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 5ace4600..dd49f045 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -4,3 +4,6 @@ updates:
directory: "/"
schedule:
interval: "weekly"
+ groups:
+ official-actions:
+ patterns: ["actions/*"]
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 479cb467..e46d0489 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -297,12 +297,11 @@ jobs:
permissions:
packages: write
needs: linux
- if: startsWith(github.ref, 'refs/tags/jq-')
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Download executables
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v3
with:
name: jq-linux
- name: Move executables
@@ -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
@@ -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 }}
@@ -363,7 +364,7 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
- name: Download artifacts
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v3
- name: Upload release
env:
TAG_NAME: ${{ github.ref_name }}