ARO-RP/.pipelines/e2e.yml

60 строки
1.3 KiB
YAML

trigger: none
pr: none
resources:
pipelines:
- pipeline: e2e
source: CI
trigger: true
# Azure DevOps Pipeline running e2e tests
variables:
- template: vars.yml
jobs:
- job: E2E
timeoutInMinutes: 180
pool:
name: ARO-CI
demands: go-1.17
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
export SECRET_SA_ACCOUNT_NAME=$(SECRET_SA_ACCOUNT_NAME)
make secrets
. secrets/env
echo "##vso[task.setvariable variable=RP_MODE]$RP_MODE"
displayName: 🔑 Downloading certificates and secrets from storage account
name: setEnv
- template: ./templates/template-push-images-to-acr.yml
parameters:
rpImageACR: $(RP_IMAGE_ACR)
buildCommand: publish-image-aro
- script: |
set -e
set -o pipefail
. secrets/env
export HIVEKUBECONFIGPATH="secrets/e2e-aks-kubeconfig"
az account set -s $AZURE_SUBSCRIPTION_ID
set -x
. ./hack/e2e/run-rp-and-e2e.sh
trap 'set +e; kill_rp; clean_e2e_db; kill_vpn' EXIT
run_vpn
deploy_e2e_db
run_rp
validate_rp_running
register_sub
export CI=true
make test-e2e
- template: ./templates/template-az-cli-logout.yml