upgrade github actions

This commit is contained in:
MaysWind
2026-05-04 16:00:14 +08:00
parent 0038321781
commit 39ee47e05a
10 changed files with 92 additions and 109 deletions
+12 -12
View File
@@ -3,50 +3,50 @@ name: Push linux docker multi-arch image to registry
inputs:
docker-image-name:
required: true
type: string
description: "The repository name of the docker image to build."
docker-username:
required: true
type: string
description: "Username for logging in to the docker registry."
docker-password:
required: true
type: string
description: "Password for logging in to the docker registry."
docker-bake-meta-file-path:
required: true
type: string
description: "The file path to the docker bake meta file."
docker-bake-meta-artifact-name:
required: true
type: string
description: "The name of the artifact that contains the docker bake meta file."
docker-bake-digests-file-path:
required: true
type: string
description: "The file path to save the docker bake digests file. The file will be created with the name of the digest under this path."
docker-bake-digests-artifact-name-prefix:
required: true
type: string
description: "The prefix for the docker bake digests artifact name."
docker-image-tags:
required: true
type: string
description: "The tags for the docker image to push."
runs:
using: "composite"
steps:
- name: Download docker bake meta artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: ${{ inputs.docker-bake-meta-artifact-name }}
path: ${{ runner.temp }}
- name: Download digests artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
pattern: ${{ inputs.docker-bake-digests-artifact-name-prefix }}-*
merge-multiple: true
path: ${{ inputs.docker-bake-digests-file-path }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ inputs.docker-username }}
password: ${{ inputs.docker-password }}