-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (99 loc) · 3.54 KB
/
Copy pathdeploy-sources-render.yml
File metadata and controls
104 lines (99 loc) · 3.54 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: 'Deploy Sources Render'
'on':
'workflow_call':
'inputs':
'package-version':
'description': 'Version range for @jorisjonkers-dev/deploy-config-schema.'
'required': false
'type': 'string'
'default': '^0.6.0'
'environment':
'description': 'Deployment environment to compile.'
'required': false
'type': 'string'
'default': 'production'
'sources-path':
'description': 'Path to deployment-sources.yml.'
'required': false
'type': 'string'
'default': 'deployment-sources.yml'
'lock-path':
'description': 'Path to deployment.lock.yml.'
'required': false
'type': 'string'
'default': 'deployment.lock.yml'
'node-contract-path':
'description': 'Path to the locked node contract.'
'required': false
'type': 'string'
'default': 'inventory/node-contract.lock.yml'
'reachability-path':
'description': 'Path to reachability catalog.'
'required': false
'type': 'string'
'default': 'catalog/reachability.yml'
'output-path':
'description': 'Rendered Flux output directory.'
'required': false
'type': 'string'
'default': 'cluster/flux'
'update-lock':
'description': 'Run lock --update before compile.'
'required': false
'type': 'boolean'
'default': false
'check':
'description': 'Require compiled output and derived lock files to be committed.'
'required': false
'type': 'boolean'
'default': true
'cutover-parity':
'description': 'Run cutover parity against current-tree.'
'required': false
'type': 'boolean'
'default': false
'current-tree':
'description': 'Current live Flux tree used when cutover-parity is true.'
'required': false
'type': 'string'
'default': ''
'secrets':
'packages-token':
'description': 'Token used for GitHub Packages reads.'
'required': false
'outputs':
'image-tags':
'description': 'Image tags resolved from deployment.lock.yml.'
'value': '${{ jobs.deploy-sources-render.outputs.image-tags }}'
'permissions':
'contents': 'read'
'jobs':
'deploy-sources-render':
'name': 'Deploy Sources Render'
'runs-on': 'ubuntu-latest'
'outputs':
'image-tags': '${{ steps.render.outputs.image-tags }}'
'steps':
- 'uses': 'actions/checkout@v7'
- 'uses': 'actions/checkout@v7'
'with':
'repository': 'JorisJonkers-dev/github-workflows'
'ref': '${{ github.job_workflow_sha }}'
'path': '.github-workflows'
'persist-credentials': false
- 'name': 'Render deployment sources'
'id': 'render'
'uses': './.github-workflows/actions/deploy-sources-render'
'with':
'package-version': '${{ inputs.package-version }}'
'environment': '${{ inputs.environment }}'
'sources-path': '${{ inputs.sources-path }}'
'lock-path': '${{ inputs.lock-path }}'
'node-contract-path': '${{ inputs.node-contract-path }}'
'reachability-path': '${{ inputs.reachability-path }}'
'output-path': '${{ inputs.output-path }}'
'update-lock': '${{ inputs.update-lock }}'
'check': '${{ inputs.check }}'
'cutover-parity': '${{ inputs.cutover-parity }}'
'current-tree': '${{ inputs.current-tree }}'
'node-auth-token': '${{ secrets.packages-token || github.token }}'