Skip to content

Commit 39e766d

Browse files
authored
fix: make Lambda layer releases complete and recoverable (#28)
* fix: keep lambda layer release contract aligned * fix: make Lambda layer releases recoverable * fix: make layer archives reproducible * fix: prevent template version rollback * fix: stabilize Lambda extension builds
1 parent 91ad661 commit 39e766d

13 files changed

Lines changed: 567 additions & 117 deletions

‎.github/workflows/build-extension.yml‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,34 @@ env:
1818
PB_VERSION: 25.3
1919
PB_URL: https://github.com/protocolbuffers/protobuf/releases/download
2020

21+
concurrency:
22+
group: build-extension-${{ github.event.pull_request.number || github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
build:
2327
name: Build ${{ matrix.arch }}
24-
runs-on: ubuntu-22.04
28+
runs-on: ${{ matrix.runner }}
29+
timeout-minutes: 45
2530
strategy:
2631
fail-fast: false
2732
matrix:
28-
arch: [amd64, arm64]
33+
include:
34+
- arch: amd64
35+
runner: ubuntu-22.04
36+
platform: x86_64
37+
- arch: arm64
38+
runner: ubuntu-24.04-arm
39+
platform: aarch64
2940
steps:
3041
- uses: actions/checkout@v4
3142

3243
- name: Set up Docker Buildx
3344
uses: docker/setup-buildx-action@v3
3445

35-
- name: Set up QEMU
36-
uses: docker/setup-qemu-action@v3
37-
with:
38-
platforms: arm64
39-
4046
- name: Set build variables
4147
id: vars
4248
run: |
43-
if [ "${{ matrix.arch }}" == "amd64" ]; then
44-
echo "platform=x86_64" >> $GITHUB_OUTPUT
45-
else
46-
echo "platform=aarch64" >> $GITHUB_OUTPUT
47-
fi
48-
4949
echo "suffix=${{ matrix.arch }}" >> $GITHUB_OUTPUT
5050
5151
if [ "${{ inputs.debug }}" == "true" ]; then
@@ -56,12 +56,12 @@ jobs:
5656
5757
- name: Build Bottlecap binary
5858
run: |
59-
docker buildx build --platform linux/${{ matrix.arch }} \
59+
docker buildx build \
6060
--progress plain \
6161
--no-cache \
6262
-t datadog/compile-bottlecap \
6363
-f ./images/Dockerfile.bottlecap.compile \
64-
--build-arg PLATFORM=${{ steps.vars.outputs.platform }} \
64+
--build-arg PLATFORM=${{ matrix.platform }} \
6565
--build-arg FIPS=0 \
6666
--build-arg DEBUG=${{ steps.vars.outputs.debug }} \
6767
--output type=local,dest=.binaries/compiled-bottlecap-${{ steps.vars.outputs.suffix }} \

0 commit comments

Comments
 (0)