Skip to content

Commit 9f41f9c

Browse files
committed
Fix bug in 11541 : Ensure regctl is added to GitHub path rather than installing in a directory that is access restricted
1 parent 066caad commit 9f41f9c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/reusable-docker-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ env:
7878
# Registry used during building of Docker images. (All images are later copied to docker.io registry)
7979
# We use GitHub's Container Registry to avoid aggressive rate limits at DockerHub.
8080
DOCKER_BUILD_REGISTRY: ghcr.io
81-
# Version of 'regctl' to use for copying images to DOCKER_BUILD_REGISTRY
82-
REGCTL_VERSION: 'v0.9.2'
8381

8482
jobs:
8583
docker-build:
@@ -301,8 +299,11 @@ jobs:
301299
# See https://github.com/regclient/regclient/blob/main/docs/regctl.md
302300
- name: Install regctl for Docker registry tools
303301
run: |
304-
curl -L https://github.com/regclient/regclient/releases/download/${REGCTL_VERSION}/regctl-linux-amd64 > /usr/bin/regctl
305-
chmod 755 /usr/bin/regctl
302+
export REGCTL_VERSION=v0.9.2
303+
mkdir -p bin
304+
curl -sSLo bin/regctl https://github.com/regclient/regclient/releases/download/${REGCTL_VERSION}/regctl-linux-amd64
305+
chmod a+x bin/regctl
306+
echo "$(pwd)/bin" >> $GITHUB_PATH
306307
307308
# This recreates Docker tags for DockerHub
308309
- name: Add Docker metadata for image

0 commit comments

Comments
 (0)