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.
- name: suite1
- set -ex
- echo ‘DRONE_COMMIT:’ $DRONE_COMMIT
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?