diff --git a/.tekton/pull-request.yaml b/.tekton/pull-request.yaml index 5355879d27..0e2f62b1c9 100644 --- a/.tekton/pull-request.yaml +++ b/.tekton/pull-request.yaml @@ -23,6 +23,23 @@ spec: workspaces: - name: workspace tasks: + - name: test-registry-access + taskSpec: + steps: + - name: check-creds + image: registry.redhat.io/openshift4/ose-cli@sha256:73df37794ffff7de1101016c23dc623e4990810390ebdabcbbfa065214352c7c + script: | + #!/usr/bin/env bash + echo 'well that works...' + - name: skopeo + image: quay.io/containers/skopeo:latest + script: | + #!/usr/bin/env bash + set -euo pipefail + + ls -la ~/.docker + skopeo inspect --authfile "${HOME}/.docker/config.json" --no-tags docker://registry.redhat.io/openshift4/ose-cli@sha256:73df37794ffff7de1101016c23dc623e4990810390ebdabcbbfa065214352c7c + exit 1 - name: fetch-repository taskRef: name: git-clone