Skip to content

Commit dc2fdef

Browse files
committed
Add Azure gitops pipeline
Signed-off-by: Tomáš Nevrlka <[email protected]>
1 parent 716c54c commit dc2fdef

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FILES=\
1010
generated/gitops-template/jenkins/Jenkinsfile \
1111
generated/gitops-template/githubactions/.github/workflows/gitops-promotion.yml \
1212
generated/gitops-template/gitlabci/.gitlab-ci.yml \
13-
# generated/gitops-template/azure/azure-pipelines.yml \
13+
generated/gitops-template/azure/azure-pipelines.yml \
1414
\
1515
rhtap.groovy \
1616
rhtap/build-pipeline-steps.sh \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Generated from templates/gitops-template/azure-pipelines.yml.njk. Do not edit directly.
2+
3+
trigger:
4+
- main
5+
6+
pool:
7+
name: resourcehub
8+
9+
container:
10+
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
11+
options: --privileged
12+
13+
steps:
14+
- bash: |
15+
echo "• gather-deploy-images"
16+
bash /work/rhtap/gather-deploy-images.sh
17+
echo "• verify-enterprise-contract"
18+
bash /work/rhtap/verify-enterprise-contract.sh
19+
name: Verify Ec
20+
env:
21+
TRUSTIFICATION_OIDC_CLIENT_SECRET: $(TRUSTIFICATION_OIDC_CLIENT_SECRET)
22+
# Set this password for your specific registry
23+
# IMAGE_REGISTRY_PASSWORD: $(IMAGE_REGISTRY_PASSWORD)
24+
# QUAY_IO_CREDS_PSW: $(QUAY_IO_CREDS_PSW)
25+
# ARTIFACTORY_IO_CREDS_PSW: $(ARTIFACTORY_IO_CREDS_PSW)
26+
# NEXUS_IO_CREDS_PSW: $(NEXUS_IO_CREDS_PSW)
27+
- bash: |
28+
echo "• gather-images-to-upload-sbom"
29+
bash /work/rhtap/gather-images-to-upload-sbom.sh
30+
echo "• download-sbom-from-url-in-attestation"
31+
bash /work/rhtap/download-sbom-from-url-in-attestation.sh
32+
echo "• upload-sbom-to-trustification"
33+
bash /work/rhtap/upload-sbom-to-trustification.sh
34+
name: Upload Sbom
35+
env:
36+
TRUSTIFICATION_OIDC_CLIENT_SECRET: $(TRUSTIFICATION_OIDC_CLIENT_SECRET)
37+
# Set this password for your specific registry
38+
# IMAGE_REGISTRY_PASSWORD: $(IMAGE_REGISTRY_PASSWORD)
39+
# QUAY_IO_CREDS_PSW: $(QUAY_IO_CREDS_PSW)
40+
# ARTIFACTORY_IO_CREDS_PSW: $(ARTIFACTORY_IO_CREDS_PSW)
41+
# NEXUS_IO_CREDS_PSW: $(NEXUS_IO_CREDS_PSW)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{%- include "do-not-edit.njk" -%}
2+
{%- set secrets = gitops_secrets -%}
3+
4+
trigger:
5+
- main
6+
7+
variables:
8+
- group: $(AZURE_VARIABLE_GROUP_NAME)
9+
10+
container:
11+
image: quay.io/redhat-appstudio/rhtap-task-runner:latest
12+
options: --privileged
13+
14+
steps:
15+
{%- filter indent(2) -%}
16+
{%- for step in gitops_steps %}
17+
{% include "azure-step.njk" %}
18+
{%- endfor -%}
19+
{%- endfilter -%}

0 commit comments

Comments
 (0)