Skip to content

Commit

Permalink
NIT-994 pipeline for installing helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahzad Chaudhry committed Dec 19, 2023
1 parent 202eff8 commit 134780b
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/cloud-platform-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,20 @@ jobs:
if [ -z ${SECRET+x} ]
then
SECRET=$(openssl rand -base64 20)
echo "Unset secret = $SECRET"
else
SECRET=$(awk '{print substr($0, 19)}' <<< $(kubectl get secrets alfresco-content-services-alfresco-repository-properties-secret -o jsonpath='{.data.alfresco-global\.properties}' | base64 -d))
echo "Secret = $SECRET"
fi
echo "====== Shared secret =============="
echo $SECRET
echo "===================="
# This is the S3 bucket where docs are stored
export BUCKET_NAME=$(awk '{print substr($0, 0)}' <<< $(kubectl get secrets s3-bucket-output -o jsonpath='{.data.bucket_name}' | base64 -d))
echo "====== BUCKET_NAME =============="
echo $BUCKET_NAME
echo "===================="
cd alfresco-content-services
echo "======== Content of current directory ============"
ls -latr $PWD
echo "===================="
# helm upgrade --install alfresco-content-services . --values=./values.yaml \
# --namespace hmpps-delius-alfrsco-poc \
# --set s3connector.config.bucketName=$BUCKET_NAME \
# --set global.tracking.sharedsecret=$SECRET
helm upgrade --install alfresco-content-services . --values=./values.yaml \
--namespace hmpps-delius-alfrsco-poc \
--set s3connector.config.bucketName=$BUCKET_NAME \
--set global.tracking.sharedsecret=$SECRET
env:
KUBE_NAMESPACE: ${{ secrets.KUBE_NAMESPACE }}
KUBE_CLUSTER: ${{ secrets.KUBE_CLUSTER }}

0 comments on commit 134780b

Please sign in to comment.