-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (77 loc) · 1.78 KB
/
azure_main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
on:
workflow_call:
inputs:
product:
required: true
type: string
default: cosmian-vm
kms-version:
required: true
type: string
ai-runner-version:
required: true
type: string
techno:
required: true
type: string
default: sev
workflow_dispatch:
inputs:
product:
description: Cosmian product
required: true
type: choice
options:
- cosmian-vm
- kms
- kms-fips
- ai-runner
kms-version:
required: true
type: string
description: KMS server version
ai-runner-version:
required: true
type: string
description: AI Runner version
techno:
required: true
type: choice
description: CPU Technology
options:
- sev
- tdx
concurrency:
group: marketplace_azure
name: Azure images
jobs:
clean-resources:
uses: ./.github/workflows/azure_clean.yml
secrets: inherit
image:
strategy:
fail-fast: false
matrix:
distrib: [ubuntu, rhel]
product:
- ${{ inputs.product }}
techno:
- ${{ inputs.techno }}
name: (AZURE) ${{ matrix.product }} - ${{ matrix.distrib }} - ${{ matrix.techno }}
needs:
- clean-resources
secrets: inherit
uses: ./.github/workflows/azure_ansible.yml
with:
techno: ${{ matrix.techno }}
distrib: ${{ matrix.distrib }}
product: ${{ matrix.product }}
kms-version: ${{ inputs.kms-version }}
ai-runner-version: ${{ inputs.ai-runner-version }}
post-clean-resources:
if: success() || cancelled()
needs:
- image
uses: ./.github/workflows/azure_clean.yml
secrets: inherit