File tree 1 file changed +24
-3
lines changed
1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ # GovCloud Layer Publish
2
+ # ---
3
+ # This workflow publishes a specific layer version in an AWS account based on the environment input.
4
+ #
5
+ # Using a matrix, we pull each architecture and python version of the layer and store them as artifacts
6
+ # we upload them to each of the GovCloud AWS accounts.
7
+ #
8
+ # A number of safety checks are performed to ensure safety.
9
+
1
10
on :
2
11
workflow_dispatch :
3
12
inputs :
13
22
description : Layer version to duplicate
14
23
type : number
15
24
required : true
25
+ workflow_call :
26
+ inputs :
27
+ environment :
28
+ description : Deployment environment
29
+ type : string
30
+ default : Gamma
31
+ required : true
32
+ version :
33
+ description : Layer version to duplicate
34
+ type : number
35
+ required : true
16
36
17
37
name : Layer Deployment (GovCloud)
18
38
run-name : Layer Deployment (GovCloud) - ${{ inputs.environment }}
19
39
20
40
jobs :
21
- stash :
41
+ download :
22
42
runs-on : ubuntu-latest
23
43
permissions :
24
44
id-token : write
45
65
- name : Grab Zip
46
66
run : |
47
67
aws --region us-east-1 lambda get-layer-version-by-arn --arn arn:aws:lambda:us-east-1:017000801446:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }} --query 'Content.Location' | xargs curl -L -o ${{ matrix.layer }}_${{ matrix.arch }}.zip
68
+
48
69
- name : Store Zip
49
70
uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
50
71
with :
55
76
56
77
copy_east :
57
78
name : Copy (East)
58
- needs : stash
79
+ needs : download
59
80
runs-on : ubuntu-latest
60
81
permissions :
61
82
id-token : write
98
119
99
120
copy_west :
100
121
name : Copy (West)
101
- needs : stash
122
+ needs : download
102
123
runs-on : ubuntu-latest
103
124
permissions :
104
125
id-token : write
You can’t perform that action at this time.
0 commit comments