generated from DFE-Digital/govuk-dotnet-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (25 loc) · 920 Bytes
/
auto-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Auto Deploy
on:
workflow_run:
workflows: Docker Publish
types: [completed] #requested
jobs:
auto-deploy:
name: 'Auto Deploy'
runs-on: ubuntu-latest
environment: Dev
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Sign in to Azure
uses: azure/login@v1
with:
creds: '{"clientId":"${{ secrets.TF_ARM_CLIENT_ID }}","clientSecret":"${{ secrets.TF_ARM_CLIENT_SECRET }}","subscriptionId":"${{ secrets.TF_ARM_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.TF_ARM_TENANT_ID }}"}'
- name: Automatically Deploy Dev to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 's185d01-chidrens-social-care-cpd-app-service'
# slot-name: 'Dev'
images: 'ghcr.io/dfe-digital/childrens-social-care-cpd:latest'
- name: Sign out of Azure
run: |
az logout