-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.43 KB
/
deploy.yaml
File metadata and controls
43 lines (41 loc) · 1.43 KB
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
35
36
37
38
39
40
41
42
43
name: Deploy
on:
workflow_dispatch:
inputs:
model:
description: Target Juju model
required: true
type: choice
options:
- blue-iam # dev
- green-iam # stg
revision:
description: Charm revision to deploy
required: true
type: string
dry-run:
description: Run Terraform in plan mode (dry-run) instead of apply
required: true
type: boolean
default: true
channel:
description: Charm channel to deploy from
required: false
type: string
default: latest/edge
jobs:
deploy:
name: Deploy Charm to ${{ inputs.model }}
uses: canonical/identity-team/.github/workflows/charm-deploy.yaml@59d4d2782bcb8fc2deea2aa08442e4c8603f2689 # v1.11.2
with:
model: ${{ inputs.model }}
revision: ${{ inputs.revision }}
channel: ${{ inputs.channel }}
application: login-ui
tf-application-resource: module.application.juju_application.application
plan-only: ${{ inputs.dry-run }}
secrets:
CLIENT_ID: ${{ inputs.model == 'blue-iam' && secrets.JIMM_DEV_CLIENT_ID || secrets.JIMM_STG_CLIENT_ID }}
CLIENT_SECRET: ${{ inputs.model == 'blue-iam' && secrets.JIMM_DEV_CLIENT_SECRET || secrets.JIMM_STG_CLIENT_SECRET }}
JIMM_URL: ${{ secrets.JIMM_URL }}
MODEL_UUID: ${{ inputs.model == 'blue-iam' && secrets.DEV_MODEL_UUID || secrets.STG_MODEL_UUID }}