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

Provide separate owner and repository name variables #28

Open
ZryletTC opened this issue May 13, 2020 · 0 comments
Open

Provide separate owner and repository name variables #28

ZryletTC opened this issue May 13, 2020 · 0 comments

Comments

@ZryletTC
Copy link

I'm trying to set up a build configuration for multiple repositories using Doctr and would like the job to only run if the deploy key environment variable is defined. The name of this key is of the form DOCTR_DEPLOY_ENCRYPTION_KEY_<OWNER>_<REPONAME> so I would be able to check this using a condition if I had independent access to the owner and repositories names as I could use env(concat("blahlblahblah",env(OWNER),"_",env(REPONAME))) however I cannot seem to find these variables in the Travis documentation. I've only seen repo and TRAVIS_REPO_SLUG which return the full slug, which I can't work with.

Other (more complicated but more enhancement-like) solutions could be addition of a substitution function to travis-conditions or the ability to use regex within the env function.

TLDR: Can owner and repository variables, either as condition attributes or as environment variables, please be added? Or maybe they do exist and I must've skipped over them.

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

No branches or pull requests

1 participant