Skip to content

Commit

Permalink
Use current dir in config file path
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed May 27, 2024
1 parent a510c42 commit 330a08c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build-scripts/hack/sync-registry-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
registry.k8s.io:
images-by-semver:
pause: "= 3.7"

quay.io:
images-by-semver:
skopeo/stable: "= v1.15.0"
5 changes: 4 additions & 1 deletion build-scripts/hack/sync-registry.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

docker run -v "./sync-registry-config.yaml":/config.yaml ghcr.io/canonical/stable:1.15.0 sync \
DIR=`realpath $(dirname "${0}")`
echo "DIR: $DIR"

docker run -v "$DIR/sync-registry-config.yaml":/config.yaml ghcr.io/canonical/stable:1.15.0 sync \
--src yaml \
--dest docker \
/config.yaml ghcr.io/canonical \
Expand Down

0 comments on commit 330a08c

Please sign in to comment.