diff --git a/.github/workflows/cloud-platform-deploy-release.yml b/.github/workflows/cloud-platform-deploy-release.yml index 8fb3ada..2e7434b 100644 --- a/.github/workflows/cloud-platform-deploy-release.yml +++ b/.github/workflows/cloud-platform-deploy-release.yml @@ -22,7 +22,9 @@ jobs: include: - environment: poc values: values_poc.yaml - # Get this GitHub environment populated with action secrets by raising a CP pull request. See docs at: + - environment: dev + values: values_dev.yaml + # Get this GitHub environment populated with action secrets by raising a CP pull request. See docs at: # https://github.com/ministryofjustice/cloud-platform-terraform-serviceaccount?tab=readme-ov-file#input_github_environments environment: name: ${{ matrix.environment }} @@ -62,8 +64,8 @@ jobs: # 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 - if [ -z ${SECRET} ] - then + if [ -z ${SECRET} ] + then SECRET=$(openssl rand -base64 20) fi diff --git a/alfresco-content-services/values_dev.yaml b/alfresco-content-services/values_dev.yaml new file mode 100644 index 0000000..b1cad58 --- /dev/null +++ b/alfresco-content-services/values_dev.yaml @@ -0,0 +1,5 @@ +# this file overrides values defined in ./values.yaml +# repository: +# replicaCount: 1 +# share: +# replicaCount: 1