diff --git a/.github/workflows/cloud-platform-deploy-release.yml b/.github/workflows/cloud-platform-deploy-release.yml index 7e38e39..0d64cc9 100644 --- a/.github/workflows/cloud-platform-deploy-release.yml +++ b/.github/workflows/cloud-platform-deploy-release.yml @@ -67,17 +67,15 @@ jobs: kubectl get all - # # Helm will not deploy unless this secret is present. Create a new one if one does not already exist from env section - # 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 + # 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 # if [ -z ${SECRET} ] # then - # SECRET=$(openssl rand -base64 20) + # export SECRET=$(openssl rand -base64 20) # fi - # echo "===== secret value = $SECRET" - # # Upgrad an existing release or create a new one if one does not exist - # BUCKET_NAME = $(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d)) + # 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 \ # --set s3connector.config.bucketName=$BUCKET_NAME \ # --set global.tracking.sharedsecret=$SECRET