Skip to content

Commit

Permalink
Add in packagist variable to GitAction CD
Browse files Browse the repository at this point in the history
  • Loading branch information
brown-a2 committed Nov 7, 2023
1 parent 81590e4 commit bc70a8d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- 'dev'
- 'demo'
jobs:

deployDev:
name: Deploy to Development Environment
if: github.event.ref == 'refs/heads/dev'
Expand All @@ -18,7 +18,7 @@ jobs:
secrets:
ecr-role: ${{ secrets.DEV_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ vars.DEV_ECR_REGION }}
ecr-repo: ${{ vars.DEV_ECR_REPOSITORY }}
ecr-repo: ${{ vars.DEV_ECR_REPOSITORY }}
cp-user: ${{ secrets.PACKAGIST_USER }}
cp-password: ${{ secrets.PACKAGIST_PASSWORD }}
acf-user: ${{ secrets.ACF_USER }}
Expand All @@ -43,8 +43,8 @@ jobs:
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 }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}

deployDemo:
name: Deploy to Demo Environment
Expand All @@ -55,9 +55,9 @@ jobs:
secrets:
ecr-role: ${{ secrets.DEMO_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ vars.DEMO_ECR_REGION }}
ecr-repo: ${{ vars.DEMO_ECR_REPOSITORY }}
cp-user: ${{ secrets.COMPOSER_USER }}
cp-password: ${{ secrets.COMPOSER_PASS }}
ecr-repo: ${{ vars.DEMO_ECR_REPOSITORY }}
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 }}
Expand All @@ -80,8 +80,8 @@ jobs:
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 }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}

deployStaging:
name: Deploy to Staging Environment
Expand All @@ -92,9 +92,9 @@ jobs:
secrets:
ecr-role: ${{ secrets.STAGING_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ vars.STAGING_ECR_REGION }}
ecr-repo: ${{ vars.STAGING_ECR_REPOSITORY }}
cp-user: ${{ secrets.COMPOSER_USER }}
cp-password: ${{ secrets.COMPOSER_PASS }}
ecr-repo: ${{ vars.STAGING_ECR_REPOSITORY }}
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 }}
Expand All @@ -117,8 +117,8 @@ jobs:
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 }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}

deployProd:
name: Deploy to Production Environment
Expand All @@ -130,9 +130,9 @@ jobs:
secrets:
ecr-role: ${{ secrets.PROD_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ vars.PROD_ECR_REGION }}
ecr-repo: ${{ vars.PROD_ECR_REPOSITORY }}
cp-user: ${{ secrets.COMPOSER_USER }}
cp-password: ${{ secrets.COMPOSER_PASS }}
ecr-repo: ${{ vars.PROD_ECR_REPOSITORY }}
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 }}
Expand All @@ -155,5 +155,5 @@ jobs:
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 }}
s3-uploads-region: ${{ secrets.S3_UPLOADS_REGION }}
alert-slack-webhook-url: ${{ secrets.ALERT_SLACK_WEBHOOK_URL }}

0 comments on commit bc70a8d

Please sign in to comment.