Skip to content

Commit 9944957

Browse files
committed
Use a default variable group in Azure pipelines
Add a default variable group to the Azure pipelines definitions called 'rhtap'. Specify different ways to handle variables in a comment Signed-off-by: Tomáš Nevrlka <[email protected]>
1 parent bf2684d commit 9944957

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

generated/gitops-template/azure/azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ container:
1010
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1111
options: --privileged
1212

13+
# Using 'rhtap' variable group by default
14+
# Change accordingly when using a different variable group
15+
# Can be deleted if the variables are set differently
16+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
17+
variables:
18+
- group: rhtap
19+
1320
steps:
1421
- bash: |
1522
echo "• gather-deploy-images"

generated/source-repo/azure/azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ container:
1010
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1111
options: --privileged
1212

13+
# Using 'rhtap' variable group by default
14+
# Change accordingly when using a different variable group
15+
# Can be deleted if the variables are set differently
16+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
17+
variables:
18+
- group: rhtap
19+
1320
steps:
1421
- bash: |
1522
echo "• init"

templates/gitops-template/azure-pipelines.yml.njk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ container:
1111
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1212
options: --privileged
1313

14+
# Using 'rhtap' variable group by default
15+
# Change accordingly when using a different variable group
16+
# Can be deleted if the variables are set differently
17+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
18+
variables:
19+
- group: rhtap
20+
1421
steps:
1522
{%- filter indent(2) -%}
1623
{%- for step in gitops_steps %}

templates/source-repo/azure-pipelines.yml.njk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ container:
1111
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1212
options: --privileged
1313

14+
# Using 'rhtap' variable group by default
15+
# Change accordingly when using a different variable group
16+
# Can be deleted if the variables are set differently
17+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
18+
variables:
19+
- group: rhtap
20+
1421
steps:
1522
{%- filter indent(2) -%}
1623
{%- for step in build_steps %}

0 commit comments

Comments
 (0)