Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bitoku committed Oct 1, 2024
1 parent f9b5bdc commit 91cc62e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .pipelines/validate-roledef.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 91cc62e

Please sign in to comment.