Skip to content

Commit f3aba6b

Browse files
authored
add description
1 parent 4bdc6c7 commit f3aba6b

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/layer_govcloud.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
on:
211
workflow_dispatch:
312
inputs:
@@ -13,12 +22,23 @@ on:
1322
description: Layer version to duplicate
1423
type: number
1524
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
1636

1737
name: Layer Deployment (GovCloud)
1838
run-name: Layer Deployment (GovCloud) - ${{ inputs.environment }}
1939

2040
jobs:
21-
stash:
41+
download:
2242
runs-on: ubuntu-latest
2343
permissions:
2444
id-token: write
@@ -45,6 +65,7 @@ jobs:
4565
- name: Grab Zip
4666
run: |
4767
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+
4869
- name: Store Zip
4970
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
5071
with:
@@ -55,7 +76,7 @@ jobs:
5576

5677
copy_east:
5778
name: Copy (East)
58-
needs: stash
79+
needs: download
5980
runs-on: ubuntu-latest
6081
permissions:
6182
id-token: write
@@ -98,7 +119,7 @@ jobs:
98119
99120
copy_west:
100121
name: Copy (West)
101-
needs: stash
122+
needs: download
102123
runs-on: ubuntu-latest
103124
permissions:
104125
id-token: write

0 commit comments

Comments
 (0)