Skip to content

Commit 48b4622

Browse files
committed
chore: update Docker actions to specific versions for consistency
1 parent 2a442d3 commit 48b4622

4 files changed

Lines changed: 21 additions & 22 deletions

File tree

.github/workflows/build-binary-for-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ jobs:
4545
uses: actions/setup-go@v5
4646
with:
4747
go-version: 1.23
48+
49+
- name: Install GoReleaser
50+
run: go install github.com/goreleaser/goreleaser/v2@latest
51+
4852
- name: Run GoReleaser
49-
uses: goreleaser/goreleaser-action@v6
50-
with:
51-
distribution: goreleaser
52-
version: latest
53-
args: release --clean --skip=validate
53+
run: |
54+
"$(go env GOPATH)/bin/goreleaser" release --clean --skip=validate
5455
env:
5556
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5657
- uses: actions/upload-artifact@v4

.github/workflows/build-image-for-latest-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,30 @@ jobs:
3737

3838
- name: Docker meta
3939
id: meta
40-
uses: docker/metadata-action@v5
40+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
4141
with:
4242
images: apache/answer
4343
tags: |
4444
type=raw,value=latest
4545
4646
- name: Set up QEMU
47-
uses: docker/setup-qemu-action@v3
47+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4848

4949
- name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@v3
50+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5151

5252
- name: Login to DockerHub
53-
uses: docker/login-action@v3
53+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5454
with:
5555
username: ${{ secrets.DOCKERHUB_USER }}
5656
password: ${{ secrets.DOCKERHUB_TOKEN }}
5757

5858
- name: Build and push
59-
uses: docker/build-push-action@v6
59+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
6060
with:
6161
context: .
6262
platforms: linux/amd64,linux/arm64
6363
push: true
6464
file: ./Dockerfile
6565
tags: ${{ steps.meta.outputs.tags }}
6666
labels: ${{ steps.meta.outputs.labels }}
67-

.github/workflows/build-image-for-manual.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ jobs:
3535

3636
- name: Docker meta
3737
id: meta
38-
uses: docker/metadata-action@v5
38+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
3939
with:
4040
images: apache/answer
4141
tags: |
4242
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
4343
type=semver,pattern={{version}}
4444
4545
- name: Set up QEMU
46-
uses: docker/setup-qemu-action@v3
46+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4747

4848
- name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v3
49+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5050

5151
- name: Login to DockerHub
52-
uses: docker/login-action@v3
52+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5353
with:
5454
username: ${{ secrets.DOCKERHUB_USER }}
5555
password: ${{ secrets.DOCKERHUB_TOKEN }}
5656

5757
- name: Build and push
58-
uses: docker/build-push-action@v6
58+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
5959
with:
6060
context: .
6161
platforms: linux/amd64,linux/arm64

.github/workflows/build-image-for-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,31 @@ jobs:
3636

3737
- name: Docker meta
3838
id: meta
39-
uses: docker/metadata-action@v5
39+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
4040
with:
4141
images: apache/answer
4242
tags: |
4343
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
4444
type=semver,pattern={{version}}
4545
4646
- name: Set up QEMU
47-
uses: docker/setup-qemu-action@v3
47+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4848

4949
- name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@v3
50+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5151

5252
- name: Login to DockerHub
53-
uses: docker/login-action@v3
53+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5454
with:
5555
username: ${{ secrets.DOCKERHUB_USER }}
5656
password: ${{ secrets.DOCKERHUB_TOKEN }}
5757

5858
- name: Build and push
59-
uses: docker/build-push-action@v6
59+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
6060
with:
6161
context: .
6262
platforms: linux/amd64,linux/arm64
6363
push: true
6464
file: ./Dockerfile
6565
tags: ${{ steps.meta.outputs.tags }}
6666
labels: ${{ steps.meta.outputs.labels }}
67-

0 commit comments

Comments
 (0)