Skip to content

Commit 75d3d53

Browse files
authored
chore(ci): add baking time for layer build (#2834)
1 parent 0a48d87 commit 75d3d53

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish_v2_layer.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,32 @@ jobs:
115115
run: |
116116
poetry export --format requirements.txt --output requirements.txt
117117
pip install --require-hashes -r requirements.txt
118+
118119
- name: Set up QEMU
119120
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.0.0
120121
with:
121122
platforms: arm64
122123
# NOTE: we need QEMU to build Layer against a different architecture (e.g., ARM)
124+
123125
- name: Set up Docker Buildx
124126
id: builder
125127
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1
126128
with:
127129
install: true
128130
driver: docker
129131
platforms: linux/amd64,linux/arm64
130-
- name: install cdk and deps
132+
133+
- name: Install CDK
131134
working-directory: ./
132135
run: |
133136
npm ci
134137
npx cdk --version
138+
139+
# Baking time for PyPi eventual consistency; 60s seemed more than enough
140+
# https://github.com/aws-powertools/powertools-lambda-python/issues/2491
141+
- name: Baking time (PyPi)
142+
run: sleep 60
143+
135144
- name: CDK build
136145
run: npx cdk synth --verbose --context version="${{ inputs.latest_published_version }}" -o cdk.out
137146
- name: zip output

0 commit comments

Comments
 (0)