Skip to content

Commit e1976f8

Browse files
committed
lambda doesnt support manifest image
1 parent 088d251 commit e1976f8

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
(import './docker-build-simple.libsonnet')('attendee-gate', 'us-west-2')
1+
(import './docker-build-simple.libsonnet')('attendee-gate', 'us-west-2') {
2+
jobs+: {
3+
merge+: {
4+
steps+: [
5+
{
6+
name: 'Push arm64 tag for Lambda', // doesnt support manifest
7+
run: |||
8+
dgst="$(docker buildx imagetools inspect --raw -t "${REPO}:${SHA}" | jq -r '.manifests[] | select(.platform.architecture == "arm64" and .platform.os == "linux") | .digest')"
9+
docker tag "${REPO}@${dgst}" "${REPO}:${SHA}-arm64"
10+
docker push "${REPO}:${SHA}-arm64"
11+
|||,
12+
env: {
13+
REPO: std.format('${{ steps.login-ecr.outputs.registry }}/%s', 'attendee-gate'),
14+
SHA: '${{ github.sha }}',
15+
},
16+
},
17+
],
18+
19+
},
20+
},
21+
}

.github/workflows/docker-attendee-gate.yml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)