From 91cc62ec3068be4b12e2dd5c669463deef4147e5 Mon Sep 17 00:00:00 2001 From: Ayato Tokubi Date: Tue, 1 Oct 2024 16:20:56 +0100 Subject: [PATCH] pipeline --- .pipelines/validate-roledef.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .pipelines/validate-roledef.yml diff --git a/.pipelines/validate-roledef.yml b/.pipelines/validate-roledef.yml new file mode 100644 index 00000000000..b71fe69d066 --- /dev/null +++ b/.pipelines/validate-roledef.yml @@ -0,0 +1,45 @@ +trigger: none +pr: none + +resources: + pipelines: + - pipeline: validate-roledef + source: \Public Cloud ARO pipelines\CI\CI + trigger: true + containers: + - container: golang + image: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0 + options: --user=0 + +# Azure DevOps Pipeline running e2e tests +variables: + - template: vars.yml + +# Run the test suite and collect must-gather +jobs: + - job: + timeoutInMinutes: 30 + pool: + name: 1es-aro-ci-pool + steps: + - template: ./templates/template-checkout.yml + + - template: ./templates/template-az-cli-login.yml + parameters: + azureDevOpsJSONSPN: $(aro-v4-e2e-devops-spn) + + - script: | + az account set -s $AZURE_SUBSCRIPTION_ID + SECRET_SA_ACCOUNT_NAME=$(SECRET_SA_ACCOUNT_NAME) make secrets + displayName: Setup (Azure) + + - script: | + set -e + . secrets/env + # retrieve the oc cli + wget -nv https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/$(OpenShiftCLIVersion)/openshift-client-linux-$(OpenShiftCLIVersion).tar.gz + tar xf openshift-client-linux-$(OpenShiftCLIVersion).tar.gz + + OCP_VERSION=4.14.37 OC=./oc make validate-roledef + displayName: Run check + target: golang