summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-02-15 16:13:42 -0800
committerJames E. Blair <jeblair@redhat.com>2019-02-15 16:13:42 -0800
commitc7818fe499d3eb4d3c603b77647d6894b30d0368 (patch)
tree491266c60c57c16d09f527bf5ac4115145aa5bd2
parente6b1d2aa06d1f9a52a6588396a3b180e39f7ea2c (diff)
Intermediate registry: use --insecure-policy
There is no policy file available, and we aren't concerned with verifying image signatures at this point. Add this option to tell skopeo to proceed regardless. Change-Id: I15a4978ec0fb338bc05c974b0ec6a21f680c853e
Notes
Notes (review): Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 16 Feb 2019 01:10:13 +0000 Reviewed-on: https://review.openstack.org/637336 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/pull-from-intermediate-registry/tasks/main.yaml2
-rw-r--r--roles/push-to-intermediate-registry/tasks/push.yaml2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/pull-from-intermediate-registry/tasks/main.yaml b/roles/pull-from-intermediate-registry/tasks/main.yaml
index b4fb5c4..06979d6 100644
--- a/roles/pull-from-intermediate-registry/tasks/main.yaml
+++ b/roles/pull-from-intermediate-registry/tasks/main.yaml
@@ -1,6 +1,6 @@
1- name: Pull artifact from intermediate registry 1- name: Pull artifact from intermediate registry
2 command: >- 2 command: >-
3 skopeo copy 3 skopeo copy --insecure-policy
4 --src-creds={{ intermediate_registry.username }}:{{ intermediate_registry.password }} 4 --src-creds={{ intermediate_registry.username }}:{{ intermediate_registry.password }}
5 --dest-creds={{ buildset_registry.username }}:{{ buildset_registry.password }} 5 --dest-creds={{ buildset_registry.username }}:{{ buildset_registry.password }}
6 {{ item.url }} 6 {{ item.url }}
diff --git a/roles/push-to-intermediate-registry/tasks/push.yaml b/roles/push-to-intermediate-registry/tasks/push.yaml
index f878fd7..7876748 100644
--- a/roles/push-to-intermediate-registry/tasks/push.yaml
+++ b/roles/push-to-intermediate-registry/tasks/push.yaml
@@ -1,6 +1,6 @@
1- name: Push tag to intermediate registry 1- name: Push tag to intermediate registry
2 command: >- 2 command: >-
3 skopeo copy 3 skopeo copy --insecure-policy
4 --src-creds={{ buildset_registry.username }}:{{ buildset_registry.password }} 4 --src-creds={{ buildset_registry.username }}:{{ buildset_registry.password }}
5 --dest-creds={{ intermediate_registry.username }}:{{ intermediate_registry.password }} 5 --dest-creds={{ intermediate_registry.username }}:{{ intermediate_registry.password }}
6 docker://{{ buildset_registry.host }}:{{ buildset_registry.port }}/{{ image.repository }}:{{ image_tag }} 6 docker://{{ buildset_registry.host }}:{{ buildset_registry.port }}/{{ image.repository }}:{{ image_tag }}