Hello,
drone exec (on private repo) works only if the image is already available locally on the computer. In other words, the image will never be pulled from the remote server (with drone exec) and it seems that the image_pull_secrets: dockerconfigjson authentication info is not used.
steps:
- name: suite1
image: registry.test.com/img_name:4a5cc4…
commands:- set -ex
- echo ‘DRONE_COMMIT:’ $DRONE_COMMIT
image_pull_secrets:
- dockerconfigjson
My drone exec command:
echo DRONE_COMMIT=(git rev-parse HEAD)>.drone/env.txt & echo DRONE_BRANCH=(git rev-parse --abbrev-ref HEAD)>>.drone/env.txt & drone exec --pipeline test --resume-at suite1 --secret-file .drone/secrets.txt --env-file .drone/env.txt .drone.yml
How can I “drone exec” on a private repo?
Thank you