Skip to content

chore(ci): add baking time for layer build #2834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/publish_v2_layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,32 @@ jobs:
run: |
poetry export --format requirements.txt --output requirements.txt
pip install --require-hashes -r requirements.txt

- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.0.0
with:
platforms: arm64
# NOTE: we need QEMU to build Layer against a different architecture (e.g., ARM)

- name: Set up Docker Buildx
id: builder
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1
with:
install: true
driver: docker
platforms: linux/amd64,linux/arm64
- name: install cdk and deps

- name: Install CDK
working-directory: ./
run: |
npm ci
npx cdk --version

# Baking time for PyPi eventual consistency; 60s seemed more than enough
# https://github.com/aws-powertools/powertools-lambda-python/issues/2491
- name: Baking time (PyPi)
run: sleep 60

- name: CDK build
run: npx cdk synth --verbose --context version="${{ inputs.latest_published_version }}" -o cdk.out
- name: zip output
Expand Down