Skip to content

Commit

Permalink
fixes skopeo for helm chart tagging (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxesn authored Dec 14, 2023
1 parent 34953bb commit 4923b2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/lib/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ if [ ! -d "/root/.docker" ]; then
mkdir -p /root/.docker
fi

if [ ! -d "/root/.config/containers" ]; then
mkdir -p /root/.config/containers
fi

cp config/docker-ecr-config.json /root/.docker/config.json
cp config/policy.json /root/.config/containers/policy.json
git config ${GIT_CONFIG_SCOPE} credential.helper '!aws codecommit credential-helper $@'
git config ${GIT_CONFIG_SCOPE} credential.UseHttpPath true

Expand Down
10 changes: 10 additions & 0 deletions config/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"default": [{"type": "reject"}],
"transports": {
"docker": {
"857151390494.dkr.ecr.us-west-2.amazonaws.com": [{"type": "insecureAcceptAnything"}],
"067575901363.dkr.ecr.us-west-2.amazonaws.com": [{"type": "insecureAcceptAnything"}],
"public.ecr.aws": [{"type": "insecureAcceptAnything"}]
}
}
}

0 comments on commit 4923b2e

Please sign in to comment.