diff --git a/ci-scripts/container-push/container-push.yml b/ci-scripts/container-push/container-push.yml index dab1a5603..2e8c2f5f4 100644 --- a/ci-scripts/container-push/container-push.yml +++ b/ci-scripts/container-push/container-push.yml @@ -121,6 +121,17 @@ tags: - rdoproject_push + # Workaround for https://github.com/ansible/ansible/issues/32868 + - name: Validate rdoproject registry login + shell: > + docker build -t trunk.registry.rdoproject.org/{{ rdoproject_namespace }}/nop - && + docker push trunk.registry.rdoproject.org/{{ rdoproject_namespace }}/nop + args: + stdin: | + FROM scratch + CMD touch foo + ENTRYPOINT "" + - name: Tag images to rdoproject registry with named label shell: > docker tag @@ -148,6 +159,17 @@ tags: - dockerhub_push + # Workaround for https://github.com/ansible/ansible/issues/32868 + - name: Validate docker login + shell: > + docker build -t docker.io/{{ dockerhub_namespace }}/nop - && + docker push docker.io/{{ dockerhub_namespace }}/nop + args: + stdin: | + FROM scratch + CMD touch foo + ENTRYPOINT "" + # Nested loop order here is on purpose, so we push first all the images with the full hash, then we tag with the named label. - name: Tag and push images to docker hub docker_image: