Skip to content

Commit

Permalink
Merge pull request #21 from ministryofjustice/NIT-994-alfresco-pipeli…
Browse files Browse the repository at this point in the history
…ne-matrix

Nit 994 alfresco pipeline matrix
  • Loading branch information
pete-j-g authored Jan 8, 2024
2 parents a63a3cb + 634ae3e commit 0f78cee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/cloud-platform-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@ defaults:
working-directory: alfresco-content-services

jobs:
poc-release:
release:
continue-on-error: false
strategy:
fail-fast: true
max-parallel: 1
matrix:
include:
- environment: poc
values: values_poc.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: poc
environment:
name: ${{ matrix.environment }}
runs-on: ubuntu-latest
steps:
- name: Checkout current repo
Expand All @@ -38,7 +47,7 @@ jobs:
version: 'v3.9.0'
id: helm_install

- name: PoC release
- name: ${{ matrix.environment }} release
env:
KUBE_NAMESPACE: ${{ secrets.KUBE_NAMESPACE }}
KUBE_CLUSTER: ${{ secrets.KUBE_CLUSTER }}
Expand All @@ -64,18 +73,7 @@ jobs:
# 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))
helm upgrade --install alfresco-content-services . --values=./values.yaml \
helm upgrade --install alfresco-content-services . --values=./values.yaml --values=./${{ matrix.values }} \
--set s3connector.config.bucketName=$BUCKET_NAME \
--set global.tracking.sharedsecret=$SECRET \
--atomic
dev-release:
needs: poc-release
environment: dev
runs-on: ubuntu-latest
steps:
- name: Checkout current repo
uses: actions/checkout@v3
- name: Dev release
run: |
echo "This job will only run in sequence and only after the above job is completed successfully"
5 changes: 5 additions & 0 deletions alfresco-content-services/values_poc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# this file overrides values defined in ./values.yaml
# repository:
# replicaCount: 1
# share:
# replicaCount: 1
5 changes: 0 additions & 5 deletions alfresco-content-services/values_test.yaml

This file was deleted.

0 comments on commit 0f78cee

Please sign in to comment.