Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce env var: DRONE_RUNNER_PULL_POLICY #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2020

CLA assistant check
All committers have signed the CLA.

@Al2Klimov
Copy link
Author

CC @N-o-X

@marko-gacesa
Copy link
Contributor

@Al2Klimov Isn't this the same thing as https://docs.drone.io/pipeline/kubernetes/syntax/images/ ? It we misunderstood the PR can you please explain it better?

@bradrydzewski
Copy link
Collaborator

bradrydzewski commented Jul 13, 2021

I recommend using a conversion extension [1] for this purpose:

You can use a conversion extension to modify a .drone.yml configuration file before it is parsed and processed by the system. This can be used to automatically add steps or set configuration parameters, or it can be used to convert the configuration file from a non-yaml format to yaml.

I think a more generic conversion extension that uses open policy agent / rego to enforce defaults would be awesome. This would allow anyone to set global defaults for any field in the yaml as opposed to a small subset.

[1] https://docs.drone.io/extensions/conversion/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants