Skip to content

Commit

Permalink
CI-CD for domains
Browse files Browse the repository at this point in the history
  • Loading branch information
Neill Turner committed Jan 13, 2025
1 parent 997718c commit dad83e1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy_domains_infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Domains Infrastructure

on:
push:
workflow_dispatch:

jobs:
deploy_domains_infra:
name: Deploy Domains Infrastructure
runs-on: ubuntu-latest
concurrency: deploy_production
environment:
name: production

steps:
- uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Fetch secrets from key vault
uses: azure/CLI@v2
id: keyvault-yaml-secret
with:
inlineScript: |
SLACK_WEBHOOK=$(az keyvault secret show --name "SLACK-WEBHOOK" --vault-name "${{ secrets.INF_KEY_VAULT }}" --query "value" -o tsv)
echo "::add-mask::$SLACK_WEBHOOK"
echo "SLACK_WEBHOOK=$SLACK_WEBHOOK" >> $GITHUB_OUTPUT
- name: Deploy Domains Infrastructure
id: deploy_domains_infra
uses: DFE-Digital/github-actions/deploy-domains-infra@ci-cd-domains
with:
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
slack-webhook: ${{ steps.keyvault-yaml-secret.outputs.SLACK_WEBHOOK }}

0 comments on commit dad83e1

Please sign in to comment.