Skip to content

Commit

Permalink
Merge pull request #11 from belodetek/ab77/operational
Browse files Browse the repository at this point in the history
build separate arch targets for AWS/Lambda(s)
  • Loading branch information
belodetek[bot] authored Nov 2, 2023
2 parents 5309d57 + 1a7df64 commit 67070f4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,19 @@ jobs:
repo_config: true
repo_homepage: "https://anton.belodedenko.me/generic-custom-resource-provider"
repo_description: "CloudFormation generic custom resource provider."
# .. AWS::Lambda::Function:Code:ImageUri can't be public :/
# https://stackoverflow.com/a/67389055/1559300
# https://stackoverflow.com/a/69997191/1559300
docker_images: |
ghcr.io/belodetek/cfn-generic-provider,
public.ecr.aws/k4v3r5y6/cfn-generic-provider,
312433241086.dkr.ecr.us-east-1.amazonaws.com/cfn-generic-provider
# .. or multi-arch :/
# https://repost.aws/questions/QUIZjd2sL_TtCuoqtg5Q30LA/does-lambda-not-support-multi-architecture-container-images-manifests
docker_runs_on: >
{
"linux/arm64": ["ubuntu-latest"],
"linux/amd64": ["ubuntu-latest"]
}
bake_targets: |
default,amd64,arm64
12 changes: 12 additions & 0 deletions generic_provider/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ target "default" {
"linux/arm64"
]
}

target "amd64" {
platforms = [
"linux/amd64"
]
}

target "arm64" {
platforms = [
"linux/arm64"
]
}

0 comments on commit 67070f4

Please sign in to comment.