-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
@@ -56,34 +56,34 @@ jobs: | |
# multi-platform images and export cache | ||
# https://github.com/docker/setup-buildx-action | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: v0.12.0 | ||
version: v0.16.2 | ||
|
||
- name: Go package cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: go-package-cache | ||
key: ${{ matrix.platform.go }}-docker-go-package-${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ matrix.platform.go }}-docker-go-package- | ||
- name: Go build cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: go-build-cache | ||
key: ${{ matrix.platform.go }}-docker-go-build-${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ matrix.platform.go }}-docker-go-build- | ||
- name: Inject go package cache into docker | ||
uses: reproducible-containers/buildkit-cache-dance@v2.1.2 | ||
uses: reproducible-containers/buildkit-cache-dance@v3 | ||
with: | ||
cache-source: go-package-cache | ||
cache-target: /root/go/pkg/mod | ||
|
||
- name: Inject go build cache into docker | ||
uses: reproducible-containers/buildkit-cache-dance@v2.1.2 | ||
uses: reproducible-containers/buildkit-cache-dance@v3 | ||
with: | ||
cache-source: go-build-cache | ||
cache-target: /root/.cache/go-build | ||
|
@@ -92,7 +92,7 @@ jobs: | |
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v3.0.0 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
|
@@ -102,15 +102,15 @@ jobs: | |
# https://github.com/docker/metadata-action | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v5.0.0 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# Build and push Docker image with Buildx (don't push on PR) | ||
# https://github.com/docker/build-push-action | ||
- name: Build and push Docker image in PR | ||
id: build-and-push-pr | ||
uses: docker/build-push-action@v5.1.0 | ||
uses: docker/build-push-action@v6 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
context: . | ||
|
@@ -127,7 +127,7 @@ jobs: | |
# https://github.com/docker/build-push-action | ||
- name: Build and push Docker image outside Branch | ||
id: build-and-push | ||
uses: docker/build-push-action@v5.1.0 | ||
uses: docker/build-push-action@v6 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
context: . | ||
|
@@ -150,7 +150,7 @@ jobs: | |
- name: Upload digest | ||
if: github.event_name != 'pull_request' | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: digests | ||
path: /tmp/digests/* | ||
|
@@ -169,7 +169,7 @@ jobs: | |
|
||
steps: | ||
- name: Download digests | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: digests | ||
path: /tmp/digests | ||
|
@@ -178,14 +178,14 @@ jobs: | |
# multi-platform images and export cache | ||
# https://github.com/docker/setup-buildx-action | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: v0.12.0 | ||
|
||
# Login against a Docker registry except on PR | ||
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v3.0.0 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
|
@@ -194,16 +194,16 @@ jobs: | |
# Install the cosign tool except on PR | ||
# https://github.com/sigstore/cosign-installer | ||
- name: Install cosign | ||
uses: sigstore/cosign-installer@v3.1.2 | ||
uses: sigstore/cosign-installer@v3 | ||
with: | ||
cosign-release: 'v2.2.0' | ||
cosign-release: 'v2.3.0' | ||
|
||
|
||
# Extract metadata (tags, labels) for Docker | ||
# https://github.com/docker/metadata-action | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v5.0.0 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters