Skip to content

Commit d730aaf

Browse files
authored
Load GITHUB_PATH in PATH to use correct binaries when creating registry (#133)
Signed-off-by: Hristo Georgiev <h.georgiev@hotmail.com>
1 parent a6dfd81 commit d730aaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

registry.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ connect_registry() {
140140
}
141141

142142
config_registry_for_nodes() {
143+
if [ -f "$GITHUB_PATH" ]; then
144+
while IFS= read -r line; do
145+
export PATH="$line:$PATH"
146+
done < "$GITHUB_PATH"
147+
fi
148+
143149
# Reference: https://github.com/containerd/containerd/blob/main/docs/hosts.md
144150
REGISTRY_DIR="/etc/containerd/certs.d/${registry_name}:${registry_port}"
145151

0 commit comments

Comments
 (0)