66 - " v[0-9]+.[0-9]+.[0-9]+"
77permissions :
88 contents : read
9+ packages : write # Allow docker/build-push-action to publish to GitHub Container Registry
910env :
1011 DOCKER_PLATFORMS : linux/amd64, linux/arm64, windows/amd64
1112 DOCKER_IMAGE_BASENAME : ghcr.io/${{ github.repository_owner }}
3132 - linux
3233 - windows
3334 steps :
34- - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 .0.1
35+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
3536 with :
3637 persist-credentials : false
3738 - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
5051 - name : Display ${{ matrix.app }} artifacts
5152 run : tree /tmp/dist
5253 - name : Store ${{ matrix.app }} artifacts
53- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5455 with :
5556 name : ${{ matrix.app }}-${{ matrix.go-os }}-${{ matrix.go-arch }}
5657 path : /tmp/dist
@@ -61,19 +62,16 @@ jobs:
6162 strategy :
6263 matrix :
6364 include :
64- - app : pebble
65- expose_ports : " 14000 15000"
66- - app : pebble-challtestsrv
67- expose_ports : " 5001 5002 5003 8053 8055 8443"
68- permissions :
69- contents : read
70- packages : write # Allow docker/build-push-action to publish to GitHub Container Registry
65+ - app : pebble
66+ expose_ports : " 14000 15000"
67+ - app : pebble-challtestsrv
68+ expose_ports : " 5001 5002 5003 8053 8055 8443"
7169 steps :
72- - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 .0.1
70+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
7371 with :
7472 persist-credentials : false
7573 - name : Download ${{ matrix.app }} artifacts
76- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
74+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7775 with :
7876 merge-multiple : true
7977 path : /tmp/dist
8280 run : tree /tmp/dist
8381 - name : Docker meta
8482 id : meta
85- uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10 .0
83+ uses : docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1 .0
8684 with :
8785 images : ${{ env.DOCKER_IMAGE_BASENAME }}/${{ matrix.app }}
8886 # generate Docker tags based on the following events/attributes
9391 type=sha
9492 type=raw,value=latest
9593 - name : Set up QEMU
96- uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7 .0
94+ uses : docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1 .0
9795 - name : Set up Docker Buildx
98- uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12 .0
96+ uses : docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1 .0
9997 - name : Login to GitHub Container Registry
10098 run : printenv GITHUB_TOKEN | docker login -u "$GITHUB_ACTOR" --password-stdin ghcr.io
10199 env :
@@ -129,9 +127,7 @@ jobs:
129127 env :
130128 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131129 - name : Display pebble version in container image
132- env :
133- DOCKER_IMAGE_BASENAME : ${{ env.DOCKER_IMAGE_BASENAME }}
134- run : docker run ${DOCKER_IMAGE_BASENAME}/pebble:latest -version
130+ run : docker run ${{ env.DOCKER_IMAGE_BASENAME }}/pebble:latest -version
135131 create-release :
136132 needs :
137133 - go-build
@@ -140,7 +136,7 @@ jobs:
140136 runs-on : ubuntu-latest
141137 steps :
142138 - name : Download build artifacts
143- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
139+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
144140 - name : Display build artifacts
145141 run : tree .
146142 - name : Create release
0 commit comments