Skip to content

Commit

Permalink
No reviews for scaling environments workflow (#86)
Browse files Browse the repository at this point in the history
* no reviews for scaling

* Update scale-up.yaml
  • Loading branch information
georgepstaylor authored Aug 19, 2024
1 parent 403230e commit 55ffa87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scale-down.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
environment: ["poc", "dev"]
environment:
name: ${{ matrix.environment }}
name: ${{ matrix.environment }}-preapproved
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
for deployment in $DEPLOYMENTS; do
kubectl scale $deployment --replicas=0
done
done
7 changes: 5 additions & 2 deletions .github/workflows/scale-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ jobs:
kubectl scale deployment alfresco-content-services-alfresco-cs-libreoffice --replicas=$(yq -r '.libreoffice.replicaCount // 1' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-cs-pdfrenderer --replicas=$(yq -r '.pdfrenderer.replicaCount // 1' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-cs-tika --replicas=$(yq -r '.tika.replicaCount // 1' <<< "$LATEST_VALUES")
alfresco-content-services-alfresco-search-enterprise-content --replicas=1
alfresco-content-services-alfresco-search-enterprise-mediation --replicas=1
alfresco-content-services-alfresco-search-enterprise-metadata --replicas=1
alfresco-content-services-alfresco-search-enterprise-path --replicas=1
kubectl scale deployment alfresco-content-services-alfresco-cs-transform-misc --replicas=$(yq -r '.transformmisc.replicaCount // 1' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-filestore --replicas=$(yq -r '.filestore.replicaCount // 0' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-filestore --replicas=$(yq -r '.filestore.replicaCount // 1' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-router --replicas=$(yq -r '.transformrouter.replicaCount // 1' <<< "$LATEST_VALUES")
kubectl scale deployment alfresco-content-services-alfresco-search-solr --replicas=$(yq -r '.share.replicaCount // 1' <<< "$LATEST_VALUES")
9 changes: 4 additions & 5 deletions .github/workflows/schedule-scale-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Schedule Scale Up Environments

on:
schedule:
- cron: '0 6 * * 1-5' # Schedule for POC environment
- cron: '0 3 * * 1-5' # Schedule for DEV environment

- cron: '0 6 * * 1-5' # Scale up POC environment at 6am on weekdays
- cron: '0 3 * * 1-5' # Scale up DEV environment at 3am on weekdays
jobs:
scale-up:
runs-on: ubuntu-latest
Expand All @@ -25,6 +24,6 @@ jobs:
- name: Call scale up workflow
if: env.ENV_TO_SCALE != 'NONE'
uses: ./.github/workflows/scale-up.yaml
uses: ./.github/workflows/scale.yaml
with:
environment: ${{ env.ENV_TO_SCALE }}
environment: ${{ env.ENV_TO_SCALE }}-preapproved

0 comments on commit 55ffa87

Please sign in to comment.