Skip to content

Hale v4.16.4

Hale v4.16.4 #1706

Workflow file for this run

name: Deployment
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'dev'
- 'demo'
jobs:
deployDev:
name: Deploy to Development Environment
if: github.event.ref == 'refs/heads/dev'
uses: ./.github/workflows/rw-build-image.yaml
with:
environment: Development
secrets:
ecr-role: ${{ secrets.DEV_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ secrets.DEV_ECR_REGION }}
ecr-repo: ${{ secrets.DEV_ECR_REPO }}
sentry-dsn: ${{ vars.PHP_DSN }}
domain: 'dev.websitebuilder.service.justice.gov.uk'
env-type: ${{ vars.ENV_TYPE }}
cp-user: ${{ secrets.PACKAGIST_USER }}
cp-password: ${{ secrets.PACKAGIST_PASSWORD }}
acf-user: ${{ secrets.ACF_USER }}
acf-password: ${{ secrets.ACF_PASSWORD }}
kube-cluster: ${{ secrets.KUBE_CLUSTER }}
kube-cert: ${{ secrets.KUBE_CERT }}
kube-namespace: ${{ secrets.KUBE_NAMESPACE }}
kube-token: ${{ secrets.KUBE_TOKEN }}
wp-db-user: ${{ secrets.WORDPRESS_DB_USER }}
wp-db-host: ${{ secrets.WORDPRESS_DB_HOST }}
wp-db-name: ${{ secrets.WORDPRESS_DB_NAME }}
wp-db-password: ${{ secrets.WORDPRESS_DB_PASSWORD }}
wp-admin-email: ${{ secrets.WORDPRESS_ADMIN_EMAIL }}
wp-admin-user: ${{ secrets.WORDPRESS_ADMIN_USER }}
wp-admin-password: ${{ secrets.WORDPRESS_ADMIN_PASSWORD }}
wp-auth-key-file: ${{ secrets.WORDPRESS_AUTH_KEY_FILE }}
wp-auth-salt-file: ${{ secrets.WORDPRESS_AUTH_SALT_FILE }}
wp-loggedin-key-file: ${{ secrets.WORDPRESS_LOGGED_IN_KEY_FILE }}
wp-loggedin-salt-file: ${{ secrets.WORDPRESS_LOGGED_IN_SALT_FILE }}
wp-nonce-key-file: ${{ secrets.WORDPRESS_NONCE_KEY_FILE }}
wp-nonce-salt-file: ${{ secrets.WORDPRESS_NONCE_SALT_FILE }}
wp-secure-auth-key-file: ${{ secrets.WORDPRESS_SECURE_AUTH_KEY_FILE }}
wp-secure-auth-salt-file: ${{ secrets.WORDPRESS_SECURE_AUTH_SALT_FILE }}
s3-uploads-bucket: ${{ secrets.S3_UPLOADS_BUCKET }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
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
if: github.event.ref == 'refs/heads/demo'
uses: ./.github/workflows/rw-build-image.yaml
with:
environment: Demonstration
secrets:
ecr-role: ${{ secrets.DEMO_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ secrets.DEMO_ECR_REGION }}
ecr-repo: ${{ secrets.DEMO_ECR_REPO }}
sentry-dsn: ${{ vars.PHP_DSN }}
domain: 'demo.websitebuilder.service.justice.gov.uk'
env-type: ${{ vars.ENV_TYPE }}
cp-user: ${{ secrets.PACKAGIST_USER }}
cp-password: ${{ secrets.PACKAGIST_PASSWORD }}
acf-user: ${{ secrets.ACF_USER }}
acf-password: ${{ secrets.ACF_PASSWORD }}
kube-cluster: ${{ secrets.KUBE_CLUSTER }}
kube-cert: ${{ secrets.KUBE_CERT }}
kube-namespace: ${{ secrets.KUBE_NAMESPACE }}
kube-token: ${{ secrets.KUBE_TOKEN }}
wp-db-user: ${{ secrets.WORDPRESS_DB_USER }}
wp-db-host: ${{ secrets.WORDPRESS_DB_HOST }}
wp-db-name: ${{ secrets.WORDPRESS_DB_NAME }}
wp-db-password: ${{ secrets.WORDPRESS_DB_PASSWORD }}
wp-admin-email: ${{ secrets.WORDPRESS_ADMIN_EMAIL }}
wp-admin-user: ${{ secrets.WORDPRESS_ADMIN_USER }}
wp-admin-password: ${{ secrets.WORDPRESS_ADMIN_PASSWORD }}
wp-auth-key-file: ${{ secrets.WORDPRESS_AUTH_KEY_FILE }}
wp-auth-salt-file: ${{ secrets.WORDPRESS_AUTH_SALT_FILE }}
wp-loggedin-key-file: ${{ secrets.WORDPRESS_LOGGED_IN_KEY_FILE }}
wp-loggedin-salt-file: ${{ secrets.WORDPRESS_LOGGED_IN_SALT_FILE }}
wp-nonce-key-file: ${{ secrets.WORDPRESS_NONCE_KEY_FILE }}
wp-nonce-salt-file: ${{ secrets.WORDPRESS_NONCE_SALT_FILE }}
wp-secure-auth-key-file: ${{ secrets.WORDPRESS_SECURE_AUTH_KEY_FILE }}
wp-secure-auth-salt-file: ${{ secrets.WORDPRESS_SECURE_AUTH_SALT_FILE }}
s3-uploads-bucket: ${{ secrets.S3_UPLOADS_BUCKET }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
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
if: github.event.ref == 'refs/heads/main'
uses: ./.github/workflows/rw-build-image.yaml
with:
environment: Staging
secrets:
ecr-role: ${{ secrets.STAGING_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ secrets.STAGING_ECR_REGION }}
ecr-repo: ${{ secrets.STAGING_ECR_REPO }}
domain: 'staging.websitebuilder.service.justice.gov.uk'
sentry-dsn: ${{ vars.PHP_DSN }}
env-type: ${{ vars.ENV_TYPE }}
cp-user: ${{ secrets.PACKAGIST_USER }}
cp-password: ${{ secrets.PACKAGIST_PASSWORD }}
acf-user: ${{ secrets.ACF_USER }}
acf-password: ${{ secrets.ACF_PASSWORD }}
kube-cluster: ${{ secrets.KUBE_CLUSTER }}
kube-cert: ${{ secrets.KUBE_CERT }}
kube-namespace: ${{ secrets.KUBE_NAMESPACE }}
kube-token: ${{ secrets.KUBE_TOKEN }}
wp-db-user: ${{ secrets.WORDPRESS_DB_USER }}
wp-db-host: ${{ secrets.WORDPRESS_DB_HOST }}
wp-db-name: ${{ secrets.WORDPRESS_DB_NAME }}
wp-db-password: ${{ secrets.WORDPRESS_DB_PASSWORD }}
wp-admin-email: ${{ secrets.WORDPRESS_ADMIN_EMAIL }}
wp-admin-user: ${{ secrets.WORDPRESS_ADMIN_USER }}
wp-admin-password: ${{ secrets.WORDPRESS_ADMIN_PASSWORD }}
wp-auth-key-file: ${{ secrets.WORDPRESS_AUTH_KEY_FILE }}
wp-auth-salt-file: ${{ secrets.WORDPRESS_AUTH_SALT_FILE }}
wp-loggedin-key-file: ${{ secrets.WORDPRESS_LOGGED_IN_KEY_FILE }}
wp-loggedin-salt-file: ${{ secrets.WORDPRESS_LOGGED_IN_SALT_FILE }}
wp-nonce-key-file: ${{ secrets.WORDPRESS_NONCE_KEY_FILE }}
wp-nonce-salt-file: ${{ secrets.WORDPRESS_NONCE_SALT_FILE }}
wp-secure-auth-key-file: ${{ secrets.WORDPRESS_SECURE_AUTH_KEY_FILE }}
wp-secure-auth-salt-file: ${{ secrets.WORDPRESS_SECURE_AUTH_SALT_FILE }}
s3-uploads-bucket: ${{ secrets.S3_UPLOADS_BUCKET }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
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
needs: deployStaging
if: github.event.ref == 'refs/heads/main'
uses: ./.github/workflows/rw-build-image.yaml
with:
environment: Production
secrets:
ecr-role: ${{ secrets.PROD_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ secrets.PROD_ECR_REGION }}
ecr-repo: ${{ secrets.PROD_ECR_REPO }}
sentry-dsn: ${{ vars.PHP_DSN }}
domain: 'websitebuilder.service.justice.gov.uk'
env-type: ${{ vars.ENV_TYPE }}
cp-user: ${{ secrets.PACKAGIST_USER }}
cp-password: ${{ secrets.PACKAGIST_PASSWORD }}
acf-user: ${{ secrets.ACF_USER }}
acf-password: ${{ secrets.ACF_PASSWORD }}
kube-cluster: ${{ secrets.KUBE_CLUSTER }}
kube-cert: ${{ secrets.KUBE_CERT }}
kube-namespace: ${{ secrets.KUBE_NAMESPACE }}
kube-token: ${{ secrets.KUBE_TOKEN }}
wp-db-user: ${{ secrets.WORDPRESS_DB_USER }}
wp-db-host: ${{ secrets.WORDPRESS_DB_HOST }}
wp-db-name: ${{ secrets.WORDPRESS_DB_NAME }}
wp-db-password: ${{ secrets.WORDPRESS_DB_PASSWORD }}
wp-admin-email: ${{ secrets.WORDPRESS_ADMIN_EMAIL }}
wp-admin-user: ${{ secrets.WORDPRESS_ADMIN_USER }}
wp-admin-password: ${{ secrets.WORDPRESS_ADMIN_PASSWORD }}
wp-auth-key-file: ${{ secrets.WORDPRESS_AUTH_KEY_FILE }}
wp-auth-salt-file: ${{ secrets.WORDPRESS_AUTH_SALT_FILE }}
wp-loggedin-key-file: ${{ secrets.WORDPRESS_LOGGED_IN_KEY_FILE }}
wp-loggedin-salt-file: ${{ secrets.WORDPRESS_LOGGED_IN_SALT_FILE }}
wp-nonce-key-file: ${{ secrets.WORDPRESS_NONCE_KEY_FILE }}
wp-nonce-salt-file: ${{ secrets.WORDPRESS_NONCE_SALT_FILE }}
wp-secure-auth-key-file: ${{ secrets.WORDPRESS_SECURE_AUTH_KEY_FILE }}
wp-secure-auth-salt-file: ${{ secrets.WORDPRESS_SECURE_AUTH_SALT_FILE }}
s3-uploads-bucket: ${{ secrets.S3_UPLOADS_BUCKET }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
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}}