Skip to content

Commit 312b3a6

Browse files
authored
Merge pull request #177 from tnevrlka/azure-default-variable-group
Use a default variable group in Azure pipelines
2 parents 381ed50 + e89c804 commit 312b3a6

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,24 @@
33
trigger:
44
- main
55

6+
# Using self-hosted 'Default' agent pool by default
7+
# Change accordingly when using a different agent pool
8+
# Can be deleted if self-hosted agents are not being used
9+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
610
pool:
7-
name: resourcehub
11+
name: Default
812

913
container:
1014
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1115
options: --privileged
1216

17+
# Using 'rhtap' variable group by default
18+
# Change accordingly when using a different variable group
19+
# Can be deleted if the variables are set differently
20+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
21+
variables:
22+
- group: rhtap
23+
1324
steps:
1425
- bash: |
1526
echo "• gather-deploy-images"

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,24 @@
33
trigger:
44
- main
55

6+
# Using self-hosted 'Default' agent pool by default
7+
# Change accordingly when using a different agent pool
8+
# Can be deleted if self-hosted agents are not being used
9+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
610
pool:
7-
name: resourcehub
11+
name: Default
812

913
container:
1014
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1115
options: --privileged
1216

17+
# Using 'rhtap' variable group by default
18+
# Change accordingly when using a different variable group
19+
# Can be deleted if the variables are set differently
20+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
21+
variables:
22+
- group: rhtap
23+
1324
steps:
1425
- bash: |
1526
echo "• init"

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@
44
trigger:
55
- main
66

7+
# Using self-hosted 'Default' agent pool by default
8+
# Change accordingly when using a different agent pool
9+
# Can be deleted if self-hosted agents are not being used
10+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
711
pool:
8-
name: resourcehub
12+
name: Default
913

1014
container:
1115
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1216
options: --privileged
1317

18+
# Using 'rhtap' variable group by default
19+
# Change accordingly when using a different variable group
20+
# Can be deleted if the variables are set differently
21+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
22+
variables:
23+
- group: rhtap
24+
1425
steps:
1526
{%- filter indent(2) -%}
1627
{%- for step in gitops_steps %}

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@
44
trigger:
55
- main
66

7+
# Using self-hosted 'Default' agent pool by default
8+
# Change accordingly when using a different agent pool
9+
# Can be deleted if self-hosted agents are not being used
10+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
711
pool:
8-
name: resourcehub
12+
name: Default
913

1014
container:
1115
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
1216
options: --privileged
1317

18+
# Using 'rhtap' variable group by default
19+
# Change accordingly when using a different variable group
20+
# Can be deleted if the variables are set differently
21+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables
22+
variables:
23+
- group: rhtap
24+
1425
steps:
1526
{%- filter indent(2) -%}
1627
{%- for step in build_steps %}

0 commit comments

Comments
 (0)