generated from pagopa-archive/template-java-microservice
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (53 loc) · 1.72 KB
/
create_dashboard.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Create Dashboard
# Controls when the workflow will run
on:
push:
branches:
- main
paths:
- 'openapi/**'
- '.github/workflows/create_dashboard.yaml'
- '.opex/**'
workflow_dispatch:
env:
TEMPLATE_DIR: azure-dashboard
API_NAME: api-afm-calculator-dashboard
DOCKER_IMAGE_TAG: sha256:04d8ead53c772d23b094c2a395292dc159e6f2905e1b13b5f828f31eac6eb27f
permissions:
id-token: write
contents: read
jobs:
dashboard:
runs-on: ubuntu-22.04
strategy:
matrix:
environment: [prod]
product: [internal, node]
environment:
name: ${{ matrix.environment }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
persist-credentials: false
fetch-depth: 0
- name: Read terraform version
id: read-version
shell: bash
run: |
echo "TERRAFORM_VERSION=`cat .terraform-version`" >> $GITHUB_ENV
- name: Setup Terraform
uses: hashicorp/setup-terraform@69c00852f1304c321337f45a105731218c2d5544
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- uses: pagopa/opex-dashboard-azure-action@3ad80a5e4a2d5a8f342615637072f21b687320ce
with:
environment: ${{ matrix.environment }}
api-name: ${{ matrix.product }}
config: .opex/${{ matrix.product }}/env/${{ matrix.environment }}/config.yaml
client-id: ${{ secrets.CLIENT_ID }}
tenant-id: ${{ secrets.TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
docker-version: ${{ env.DOCKER_IMAGE_TAG }}