12
12
outputs :
13
13
arch : ${{ steps.supported-arch-matrix.outputs.arch }}
14
14
steps :
15
- - uses : actions/checkout@v4
15
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
16
16
- id : supported-arch-matrix
17
17
name : Generate Arch
18
18
run : |
21
21
name : Lint Dockerfile
22
22
runs-on : ubuntu-latest
23
23
steps :
24
- - uses : actions/checkout@v4
24
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25
25
- name : Lint Dockerfile
26
26
uses : docker://hadolint/hadolint:latest-debian
27
27
with :
@@ -44,18 +44,18 @@ jobs:
44
44
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
45
45
- name : Docker meta
46
46
id : meta
47
- uses : docker/metadata-action@v5
47
+ uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
48
48
with :
49
49
images : ${{ env.REGISTRY_IMAGE }}
50
50
- name : Set up QEMU
51
- uses : docker/setup-qemu-action@v3
51
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
52
52
- name : Set up Docker Buildx
53
- uses : docker/setup-buildx-action@v3
54
- - uses : actions/checkout@v4
53
+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
54
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
55
55
- run : mkdir ./docker-image
56
56
- run : docker image build --platform=${{ matrix.platform }} --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t "${DOCKER_IMAGE}:${{ env.PLATFORM_PAIR }}" --no-cache .
57
57
- run : docker save "${DOCKER_IMAGE}:${{ env.PLATFORM_PAIR }}" -o ./docker-image/docker_image-${{ env.PLATFORM_PAIR }}.tar
58
- - uses : actions/upload-artifact@v4
58
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
59
59
with :
60
60
name : docker-image-${{ env.PLATFORM_PAIR }}
61
61
path : ./docker-image
74
74
run : |
75
75
platform=${{ matrix.platform }}
76
76
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
77
- - uses : actions/checkout@v4
77
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
78
78
- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
79
79
with :
80
80
name : docker-image-${{ env.PLATFORM_PAIR }}
@@ -97,13 +97,13 @@ jobs:
97
97
steps :
98
98
- name : Get Time
99
99
id : time
100
-
100
+ uses : nanzm/get-time-action@887e4db9af58ebae64998b7105921b816af77977 # v2.0
101
101
with :
102
102
format : ' YYYY.MM.DD'
103
103
- name : Set up QEMU
104
- uses : docker/setup-qemu-action@v3
104
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
105
105
- name : Set up Docker Buildx
106
- uses : docker/setup-buildx-action@v3
106
+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
107
107
with :
108
108
driver-opts : network=host
109
109
- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
@@ -128,7 +128,7 @@ jobs:
128
128
- run : docker images
129
129
- name : Login to GitHub Container Registry
130
130
if : github.event_name != 'pull_request'
131
- uses : docker/login-action@v3
131
+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
132
132
with :
133
133
registry : ghcr.io
134
134
username : ${{ github.actor }}
@@ -139,7 +139,7 @@ jobs:
139
139
run : echo "FROM localhost:5000/${{ env.DOCKER_IMAGE }}:\${TARGETOS}-\${TARGETARCH}" >> docker-file-${{ matrix.registry }}-wyrihaximusnet-github-action-runner
140
140
- run : cat docker-file-${{ matrix.registry }}-wyrihaximusnet-github-action-runner
141
141
- name : Merged different arch images into one
142
- uses : docker/build-push-action@v6
142
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
143
143
with :
144
144
push : ${{ github.event_name != 'pull_request' }}
145
145
context : .
0 commit comments