Skip to content

Commit 254fefd

Browse files
committed
fix: UNREGISTRY_CONTAINERD_SOCK env var binding to --sock flag
1 parent bab331d commit 254fefd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/test-build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
with:
2727
go-version: "1.24"
2828

29-
- name: set up Docker Buildx
30-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
29+
- name: Install Go test dependencies
30+
run: go mod tidy
3131

3232
- name: Conformance tests
3333
run: go test -v ./conformance/...
@@ -42,6 +42,10 @@ jobs:
4242
if: ${{ startsWith(github.ref, 'refs/tags/') }}
4343
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4444

45+
- name: set up Docker Buildx
46+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
47+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
48+
4549
- name: Login to GitHub Container Registry
4650
if: ${{ startsWith(github.ref, 'refs/tags/') }}
4751
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0

cmd/unregistry/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Key use cases:
3636
bindEnvToFlag(cmd, "log-format", "UNREGISTRY_LOG_FORMAT")
3737
bindEnvToFlag(cmd, "log-level", "UNREGISTRY_LOG_LEVEL")
3838
bindEnvToFlag(cmd, "namespace", "UNREGISTRY_CONTAINERD_NAMESPACE")
39-
bindEnvToFlag(cmd, "socket", "UNREGISTRY_CONTAINERD_SOCK")
39+
bindEnvToFlag(cmd, "sock", "UNREGISTRY_CONTAINERD_SOCK")
4040
},
4141
RunE: func(cmd *cobra.Command, args []string) error {
4242
return run(cfg)

0 commit comments

Comments
 (0)