diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2018-01-17 20:37:53 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2018-01-17 20:37:53 -0700 |
| commit | e062d92a1ba743990f786b871434e9a8bb194838 (patch) | |
| tree | 43b9a925e29d2fa9ee253f21d97be0312aa73bd4 /salt/openbook | |
| parent | 45a963a8581691ebee525f9c114d618c9ebbd157 (diff) | |
fixing curl with -k thanks to ssl cert
Diffstat (limited to 'salt/openbook')
| -rw-r--r-- | salt/openbook/ci/files/build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/salt/openbook/ci/files/build.sh b/salt/openbook/ci/files/build.sh index 99fadf0..649a1af 100644 --- a/salt/openbook/ci/files/build.sh +++ b/salt/openbook/ci/files/build.sh @@ -4,8 +4,8 @@ artifact="${1}" delete_old_image() { image_name="${1}" - digest=$(curl -u '{{ pillar["registry"]["username"] }}:{{ pillar["registry"]["password"] }}' -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' https://{{ pillar["registry"]["url"] }}/v2/${image_name}/manifests/latest | jq '.config.digest' | awk -F\" '{print $2}') - curl -u '{{ pillar["registry"]["username"] }}:{{ pillar["registry"]["password"] }}' -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -X DELETE https://{{ pillar["registry"]["url"] }}/v2/${image_name}/manifests/${digest} + digest=$(curl -k -u '{{ pillar["registry"]["username"] }}:{{ pillar["registry"]["password"] }}' -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' https://{{ pillar["registry"]["url"] }}/v2/${image_name}/manifests/latest | jq '.config.digest' | awk -F\" '{print $2}') + curl -k -u '{{ pillar["registry"]["username"] }}:{{ pillar["registry"]["password"] }}' -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -X DELETE https://{{ pillar["registry"]["url"] }}/v2/${image_name}/manifests/${digest} } for i in $(docker images | grep -v CREATED | awk '{print $3}'); do |
