From 9d68e62fced976f017843bc3f75dd19691e5d87c Mon Sep 17 00:00:00 2001 From: Shahzad Chaudhry Date: Thu, 21 Dec 2023 17:20:09 +0000 Subject: [PATCH] NIT-994 Adding matrix strategy --- .github/workflows/cloud-platform-deploy-release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cloud-platform-deploy-release.yml b/.github/workflows/cloud-platform-deploy-release.yml index 32cde40..0df56f1 100644 --- a/.github/workflows/cloud-platform-deploy-release.yml +++ b/.github/workflows/cloud-platform-deploy-release.yml @@ -18,9 +18,9 @@ defaults: jobs: release: - continue-on-error: true + continue-on-error: false strategy: - fail-fast: false + fail-fast: true max-parallel: 1 matrix: include: @@ -65,15 +65,15 @@ jobs: kubectl config set-context --current --namespace=${KUBE_NAMESPACE} # Helm will not deploy unless this secret is present. Create a new one if one does not already exist from env section - export SECRET=$(awk '{print substr($0, 19)}' <<< $(kubectl get secrets alfresco-content-services-alfresco-repository-properties-secret -o jsonpath='{.data.alfresco-global\.properties}' | base64 -d)) 2> /dev/null + SECRET=$(awk '{print substr($0, 19)}' <<< $(kubectl get secrets alfresco-content-services-alfresco-repository-properties-secret -o jsonpath='{.data.alfresco-global\.properties}' | base64 -d)) 2> /dev/null if [ -z ${SECRET} ] then - export SECRET=$(openssl rand -base64 20) + SECRET=$(openssl rand -base64 20) fi # Upgrad an existing release or create a new one if one does not exist - export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d)) - helm upgrade --install alfresco-content-services . --values=./values.yaml --values=./${{ matrix.values }} + BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d)) + helm upgrade --install alfresco-content-services . --values=./values.yaml --values=./${{ matrix.values }} \ --set s3connector.config.bucketName=$BUCKET_NAME \ --set global.tracking.sharedsecret=$SECRET \ --atomic