Skip to content

Commit

Permalink
Merge pull request #240 from ministryofjustice/waf-variable-work
Browse files Browse the repository at this point in the history
Added new config value for deployments
  • Loading branch information
danielglen-moj authored Dec 3, 2024
2 parents 748987c + 3b43083 commit fbadf08
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}
avature-feed-username: ${{ secrets.AVATURE_FEED_USERNAME }}
avature-feed-password: ${{ secrets.AVATURE_FEED_PASSWORD }}
wb-config: ${{ secrets.WB_CONFIG}}

deployDemo:
name: Deploy to Demo Environment
Expand Down Expand Up @@ -92,6 +93,7 @@ jobs:
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}
avature-feed-username: ${{ secrets.AVATURE_FEED_USERNAME }}
avature-feed-password: ${{ secrets.AVATURE_FEED_PASSWORD }}
wb-config: ${{ secrets.WB_CONFIG}}

deployStaging:
name: Deploy to Staging Environment
Expand Down Expand Up @@ -134,6 +136,7 @@ jobs:
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}
avature-feed-username: ${{ secrets.AVATURE_FEED_USERNAME }}
avature-feed-password: ${{ secrets.AVATURE_FEED_PASSWORD }}
wb-config: ${{ secrets.WB_CONFIG}}

deployProd:
name: Deploy to Production Environment
Expand Down Expand Up @@ -177,3 +180,4 @@ jobs:
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}
avature-feed-username: ${{ secrets.AVATURE_FEED_USERNAME }}
avature-feed-password: ${{ secrets.AVATURE_FEED_PASSWORD }}
wb-config: ${{ secrets.WB_CONFIG}}
3 changes: 3 additions & 0 deletions .github/workflows/rw-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ on:
required: true
avature-feed-password:
required: true
wb-config:
required: true

jobs:
buildImage:
Expand Down Expand Up @@ -223,6 +225,7 @@ jobs:
--set secrets.s3uploadsregion=${{ secrets.s3-uploads-region }} \
--set secrets.feedparser.avatureFeedUserName=${{ secrets.avature-feed-username }} \
--set secrets.feedparser.avatureFeedPassword=${{ secrets.avature-feed-password }} \
--set secrets.wbconfig=${{ secrets.wb-config}} \
--set alertSecrets.slackWebhookUrl=${{ secrets.alert-slack-webhook-url }} \
--set configmap.envtype=${{ vars.ENV_TYPE }} \
--set configmap.sentrydns=${{ vars.PHP_DSN }} \
Expand Down
1 change: 1 addition & 0 deletions helm_deploy/wordpress/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ stringData:
WORDPRESS_SECURE_AUTH_SALT: {{ .Values.secrets.wpsecureauthsalt | b64dec | quote }}
S3_UPLOADS_BUCKET: {{ .Values.secrets.s3uploadsbucket }}
S3_UPLOADS_REGION: {{ .Values.secrets.s3uploadsregion }}
WB_CONFIG: {{ .Values.secrets.wbconfig }}
---
apiVersion: v1
kind: Secret
Expand Down
1 change: 1 addition & 0 deletions helm_deploy/wordpress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ secrets:
wpsecureauthsalt: ""
s3uploadsbucket: ""
s3uploadsregion: ""
wbconfig: ""
feedparser:
avatureFeedUserName: ""
avatureFeedUserPassword: ""
Expand Down

0 comments on commit fbadf08

Please sign in to comment.