File tree 3 files changed +7
-12
lines changed
3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 8
8
required : true
9
9
description : |
10
10
The target machine for the model being deployed.
11
- Equivalent to the name of the GitHub Environment, minus a potential Prerelease Type.
11
+ Equivalent to the name of the GitHub Environment, minus a Release/ Prerelease Type.
12
12
deployment-type :
13
13
type : string
14
14
required : true
@@ -282,7 +282,6 @@ jobs:
282
282
- check-spack-yaml # Verify spack manifest information is correct
283
283
uses : access-nri/build-cd/.github/workflows/deploy-2-start.yml@v4
284
284
with :
285
- type : ${{ inputs.deployment-type }}
286
285
model : ${{ inputs.spack-manifest-root-sbd }}
287
286
ref : ${{ inputs.deployment-ref }}
288
287
version : ${{ inputs.deployment-version }}
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ concurrency: ${{ inputs.deployment-target }} ${{ inputs.deployment-type }}
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
- type :
7
- type : string
8
- required : true
9
- description : The type of deployment - either 'Release' or 'Prerelease'
10
6
model :
11
7
type : string
12
8
required : true
27
23
type : string
28
24
required : true
29
25
description : |
30
- The GitHub Environment, minus a potential Type.
26
+ The GitHub Environment, minus a Type.
31
27
Combined with inputs.deployment-type to create the GitHub Environment name.
32
28
deployment-type :
33
29
type : string
34
30
required : true
35
31
description : |
36
32
The type of deployment.
37
33
Can be one of: Release, Prerelease.
38
- Combined with inputs.deployment-type to create the GitHub Environment name.
34
+ Combined with inputs.deployment-target to create the GitHub Environment name.
39
35
root-sbd :
40
36
type : string
41
37
required : true
63
59
deploy-to-environment :
64
60
name : Deploy to ${{ inputs.deployment-target }} ${{ inputs.deployment-type }}
65
61
runs-on : ubuntu-latest
66
- environment : ${{ inputs.deployment-target }} ${{ inputs.deployment-type != 'Release' && inputs.deployment-type || '' }}
62
+ environment : ${{ inputs.deployment-target }} ${{ inputs.deployment-type }}
67
63
outputs :
68
64
packages-version : ${{ steps.versions.outputs.packages }}
69
65
config-version : ${{ steps.versions.outputs.config }}
100
96
${{ secrets.HOST_DATA }}
101
97
102
98
- name : Prerelease spack.yaml Modifications
103
- if : inputs.type == 'Prerelease'
99
+ if : inputs.deployment- type == 'Prerelease'
104
100
# Modifies the name of the prerelease modulefile to the
105
101
# `pr<number>-<commit>` style. For example, `access-om3/pr12-2`.
106
102
# Also removes the `@git.VERSION` specifier for Prereleases so
Original file line number Diff line number Diff line change 38
38
name : Undeploy ${{ inputs.version-pattern }} from ${{ inputs.target }} ${{ inputs.type }}
39
39
needs : validate-inputs
40
40
runs-on : ubuntu-latest
41
- environment : ${{ inputs.target }} ${{ inputs.type != 'Release' && inputs.type }}
41
+ environment : ${{ inputs.target }} ${{ inputs.type }}
42
42
steps :
43
43
- uses : actions/checkout@v4
44
44
52
52
with :
53
53
spack-installs-root-path : ${{ vars.SPACK_INSTALLS_ROOT_LOCATION }}
54
54
spack-version : ${{ steps.versions.outputs.spack }}
55
- deployment-environment : ${{ inputs.target }} ${{ inputs.type != 'Release' && inputs.type }}
55
+ deployment-environment : ${{ inputs.target }} ${{ inputs.type }}
56
56
57
57
- name : Setup SSH
58
58
id : ssh
You can’t perform that action at this time.
0 commit comments