-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.16 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
name: deploy
on:
workflow_dispatch:
inputs:
scenario:
type: string
required: true
description: "Scenario to deploy"
default: "tfstate_backend"
environment:
type: environment
required: true
description: "Environment to deploy"
default: "ci"
permissions:
id-token: write
contents: read
jobs:
deploy:
strategy:
matrix:
platform: [ubuntu-latest]
terraform-version: [1.9.8]
runs-on: ${{ matrix.platform }}
environment: ${{ github.event.inputs.environment }}
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_USE_OIDC: ${{secrets.ARM_USE_OIDC}}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform-version }}
- name: deploy scenario
run: |
cd infra
make deploy SCENARIO=${{ github.event.inputs.scenario }}