Skip to content

Commit 2fd9e14

Browse files
committed
Remove spaces from gitops steps names
Spaces can not be included in Azure gitops steps names, replace them with an underscore Signed-off-by: Tomáš Nevrlka <[email protected]>
1 parent 6fe3c26 commit 2fd9e14

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ steps:
1414
- bash: |
1515
echo "• init"
1616
bash /work/rhtap/init.sh
17-
name: Init
17+
name: init
1818
env:
1919
ROX_API_TOKEN: $(ROX_API_TOKEN)
2020
GITOPS_AUTH_PASSWORD: $(GITOPS_AUTH_PASSWORD)
@@ -30,7 +30,7 @@ steps:
3030
bash /work/rhtap/buildah-rhtap.sh
3131
echo "• cosign-sign-attest"
3232
bash /work/rhtap/cosign-sign-attest.sh
33-
name: Build
33+
name: build
3434
env:
3535
ROX_API_TOKEN: $(ROX_API_TOKEN)
3636
GITOPS_AUTH_PASSWORD: $(GITOPS_AUTH_PASSWORD)
@@ -44,7 +44,7 @@ steps:
4444
- bash: |
4545
echo "• update-deployment"
4646
bash /work/rhtap/update-deployment.sh
47-
name: Deploy
47+
name: deploy
4848
env:
4949
ROX_API_TOKEN: $(ROX_API_TOKEN)
5050
GITOPS_AUTH_PASSWORD: $(GITOPS_AUTH_PASSWORD)
@@ -62,7 +62,7 @@ steps:
6262
bash /work/rhtap/acs-image-check.sh
6363
echo "• acs-image-scan"
6464
bash /work/rhtap/acs-image-scan.sh
65-
name: Scan
65+
name: scan
6666
env:
6767
ROX_API_TOKEN: $(ROX_API_TOKEN)
6868
GITOPS_AUTH_PASSWORD: $(GITOPS_AUTH_PASSWORD)
@@ -78,7 +78,7 @@ steps:
7878
bash /work/rhtap/show-sbom-rhdh.sh
7979
echo "• summary"
8080
bash /work/rhtap/summary.sh
81-
name: Summary
81+
name: summary
8282
env:
8383
ROX_API_TOKEN: $(ROX_API_TOKEN)
8484
GITOPS_AUTH_PASSWORD: $(GITOPS_AUTH_PASSWORD)

templates/partials/azure-step.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
echo "• {{ substep }}"
55
bash /work/rhtap/{{ substep }}.sh
66
{%- endfor %}
7-
name: {{ step.name | title }}
7+
name: {{ step.name | replace(" ", "_") }}
88
env:
99
{%- filter indent(2) -%}
1010
{%- for secret in secrets %}

0 commit comments

Comments
 (0)