-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (29 loc) · 1015 Bytes
/
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
33
34
name: Deploy on push to test ACA branch
on:
push:
branches:
- live
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login via Azure CLI'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Run CI script'
env:
AZURE_REGISTRY_NAME: ${{ secrets.AZURE_REGISTRY_NAME }}
AZURE_CONFIG_STORAGE_ACCOUNT: ${{ secrets.AZURE_CONFIG_STORAGE_ACCOUNT }}
AZURE_CONFIG_FILE_SHARE: ${{ secrets.AZURE_CONFIG_FILE_SHARE }}
AZURE_STAGING_APP_NAME: ${{ secrets.AZURE_STAGING_APP_NAME }}
AZURE_LIVE_APP_NAME: ${{ secrets.AZURE_LIVE_APP_NAME }}
AZURE_RESOURCE_GROUP: ${{ secrets.AZURE_RESOURCE_GROUP }}
run: s/ci