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

Add Azure gitops pipeline #167

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tnevrlka
Copy link
Member

No description provided.

ghub-set-vars currently sets every provided environment variable as a
repository secret.
GitHub automatically masks values of secrets with asterisks.

Some of the environment variables are not confidential and should
actually be shown to users.
This can be done by setting the environment variables as 'repository
variables' instead of 'repository secrets' in GitHub

Signed-off-by: Tomáš Nevrlka <[email protected]>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
All environment variables used for builds are currently stored under
the key 'build-secrets'
Some of the environment variables are not actually secret and should be
visible.

Differentiate the environment variables that are not secret by adding
them under a new key 'build_variables'

Do the same with 'gitops_secrets' and 'gitops_variables'

Signed-off-by: Tomáš Nevrlka <[email protected]>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Previously, all environment variables were handled as secrets and
handled as such in CI workflow definitions.

Handle both variables and secrets in Jenkinsfile and GitHub Actions
workflow generation templates.
GitLab should not be affected due to a different way of handling
variables.

Signed-off-by: Tomáš Nevrlka <[email protected]>
Add the template that is used for generating source-repo Azure
Pipelines pipelines definition.
Secrets have to be passed as environment variables in the workflow
files -> include the variables that are needed for Azure to work
Include the generated pipeline definitions

Signed-off-by: Tomáš Nevrlka <[email protected]>
Spaces can not be included in Azure gitops steps names, replace them
with an underscore

Signed-off-by: Tomáš Nevrlka <[email protected]>
@tnevrlka tnevrlka force-pushed the azure-gitops-template branch from dc2fdef to 0bc830d Compare March 19, 2025 15:06
@tnevrlka tnevrlka marked this pull request as draft March 19, 2025 15:07
Signed-off-by: Tomáš Nevrlka <[email protected]>
@tnevrlka tnevrlka force-pushed the azure-gitops-template branch from 0bc830d to 340b872 Compare March 20, 2025 11:46
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

Successfully merging this pull request may close these issues.

1 participant