-
Notifications
You must be signed in to change notification settings - Fork 53
71 lines (69 loc) · 2.87 KB
/
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
#
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
#
name : main
run-name: ${{ github.event.inputs.scheduler }} in ${{ github.event.inputs.resource_group }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
resource_group:
description: 'Name of the resource group to deploy in - In case of an existing resource group the environment will be updated'
required: false
default: 'AUTO_GENERATED'
location:
description: 'Azure location where to deploy to - default to westeurope'
required: false
default: 'westeurope'
clean:
description: 'Clean all resources'
required: false
default: 'true' # use it with ${{ github.event.inputs.clean }}
anf_dual:
description: 'Use ANF Dual Protocol'
required: false
default: 'false' # use it with ${{ github.event.inputs.anf_dual }}
scheduler:
description: 'Job Scheduler to be installed : openpbs/slurm'
required: false
default: 'openpbs' # use it with ${{ github.event.inputs.scheduler }}
images:
description: 'Images to be used (marketplace/shared) or built (private): marketplace/shared/private'
required: false
default: 'marketplace' # use it with ${{ github.event.inputs.images }}
lustre:
description: 'Deploy a Lustre cluster (true/false) - Default to true'
required: false
default: 'false' # use it with ${{ github.event.inputs.lustre }}
deploy_only:
description: 'Deploy only - Default to false'
required: false
default: 'false' # use it with ${{ github.event.inputs.deploy_only }}
use_bicep:
description: 'Deploy using Bicep - Default to false'
required: false
default: 'false' # use it with ${{ github.event.inputs.use_bicep }}
home_type:
description: 'Home directory type anf/azurefiles- Default to anf'
required: false
default: 'anf' # use it with ${{ github.event.inputs.home_type }}
type: string
jobs:
deploy:
uses: azure/az-hop/.github/workflows/main_callable.yml@main
with:
resource_group: ${{ github.event.inputs.resource_group }}
location: ${{ github.event.inputs.location }}
clean: ${{ github.event.inputs.clean }}
anf_dual: ${{ github.event.inputs.anf_dual }}
scheduler: ${{ github.event.inputs.scheduler }}
images: ${{ github.event.inputs.images }}
lustre: ${{ github.event.inputs.lustre }}
deploy_only: ${{ github.event.inputs.deploy_only }}
use_bicep: ${{ github.event.inputs.use_bicep }}
home_type: ${{ github.event.inputs.home_type }}
secrets:
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}