Skip to content

Commit

Permalink
Set CMS memory based on environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-rapnicki-bixal committed Apr 17, 2024
1 parent 5c98c1e commit 4b94bfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ jobs:
env:
PROJECT: '${{ secrets.PROJECT }}'
run: |
declare MEMORY
[ "${BRANCH}" = "dev" ] && MEMORY=${{ vars.CMS_MEMORY_DEV }}
[ "${BRANCH}" = "main" ] && MEMORY=${{ vars.CMS_MEMORY_MAIN }}
cd usagov-2021
sed -i "s#^ image: .*cms-latest*# image: ghcr.io/${{ vars.CR_REPOSITORY }}:${{ steps.meta.outputs.tags }}#" manifest.yml
sed -i "s#^ - secauthsecrets##" manifest.yml
sed -i "s#- name: cms#- name: ${PROJECT}-cms-${BRANCH}#" manifest.yml
sed -i "s#^ memory: 1.5G# memory: 1G#" manifest.yml
sed -i "s#^ memory: 1.5G# memory: ${MEMORY}#" manifest.yml
sed -i "s#^ - database# - ${PROJECT}-mysql-${BRANCH}#" manifest.yml
sed -i "s#^ - secrets# - ${PROJECT}-secrets-${BRANCH}#" manifest.yml
sed -i "s#^ - storage# - ${PROJECT}-storage-${BRANCH}#" manifest.yml
Expand Down

0 comments on commit 4b94bfb

Please sign in to comment.