Skip to content

Commit 2e436fb

Browse files
authored
build lambda support (#55)
making go releaser go with ecr
1 parent 71dcf58 commit 2e436fb

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.goreleaser.docker.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ builds:
1212
goarch:
1313
- amd64
1414
- arm64
15+
flags:
16+
- "-tags=baton_lambda_support"
1517
dockers:
1618
- use: buildx
1719
goos: linux
@@ -31,20 +33,10 @@ dockers:
3133
image_templates:
3234
- "ghcr.io/conductorone/baton-github:{{ .Version }}-arm64"
3335
- "ghcr.io/conductorone/baton-github:latest-arm64"
34-
build_flag_templates:
35-
- "--platform=linux/arm64/v8"
36-
- "--label=org.opencontainers.image.created={{.Date}}"
37-
- "--label=org.opencontainers.image.title={{.ProjectName}}"
38-
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
39-
- "--label=org.opencontainers.image.version={{.Version}}"
40-
# ECR - arm64 only
41-
- use: buildx
42-
goos: linux
43-
goarch: arm64
44-
image_templates:
4536
- "168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:{{ .Version }}-arm64"
4637
- "168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:latest-arm64"
4738
build_flag_templates:
39+
- "-tags=baton_lambda_support"
4840
- "--platform=linux/arm64/v8"
4941
- "--label=org.opencontainers.image.created={{.Date}}"
5042
- "--label=org.opencontainers.image.title={{.ProjectName}}"

0 commit comments

Comments
 (0)