-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc3c99
commit ee80c23
Showing
12 changed files
with
102 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM public.ecr.aws/docker/library/golang:1.23.3-alpine@sha256:c694a4d291a13a9f9d94933395673494fc2cc9d4777b85df3a7e70b3492d3574 | ||
|
||
RUN apk add --no-cache aws-cli bash curl github-cli zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM public.ecr.aws/docker/library/golang:1.23.3@sha256:73f06be4578c9987ce560087e2e2ea6485fb605e3910542cadd8fa09fc5f3e31 AS builder |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
services: | ||
build: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.build | ||
volumes: | ||
- ../:/work:cached | ||
- ~/gocache:/gocache | ||
- ~/gomodcache:/gomodcache | ||
working_dir: /work | ||
environment: | ||
- BUILDKITE_AGENT_ACCESS_TOKEN | ||
- BUILDKITE_AGENT_TAGS=queue=default | ||
- BUILDKITE_BRANCH | ||
- BUILDKITE_BUILD_ID | ||
- BUILDKITE_BUILD_NUMBER | ||
- BUILDKITE_BUILD_PATH=/buildkite | ||
- BUILDKITE_JOB_ID | ||
- BUILDKITE_TAG | ||
- GITHUB_RELEASE_ACCESS_TOKEN | ||
- GOCACHE=/gocache | ||
- GOMODCACHE=/gomodcache | ||
- RELEASE_DRY_RUN | ||
|
||
test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.test | ||
volumes: | ||
- ../:/work:cached | ||
- ~/gocache:/gocache | ||
- ~/gomodcache:/gomodcache | ||
working_dir: /work | ||
environment: | ||
- BUILDKITE_AGENT_TAGS=queue=default | ||
- BUILDKITE_BRANCH | ||
- BUILDKITE_BUILD_ID | ||
- BUILDKITE_BUILD_NUMBER | ||
- BUILDKITE_BUILD_PATH=/buildkite | ||
- BUILDKITE_JOB_ID | ||
- BUILDKITE_TAG | ||
- GOCACHE=/gocache | ||
- GOMODCACHE=/gomodcache | ||
|
||
release: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -eu | ||
|
||
docker run --rm --volume "$PWD:/code" \ | ||
--workdir /code \ | ||
--rm \ | ||
--env CGO_ENABLED=0 \ | ||
golang:1.21 \ | ||
go build -tags lambda.norpc -o lambda/bootstrap ./lambda | ||
CGO_ENABLED=0 go build -tags lambda.norpc -o lambda/bootstrap ./lambda | ||
|
||
chmod +x lambda/bootstrap | ||
|
||
mkdir -p dist/ | ||
zip -j handler.zip lambda/bootstrap | ||
|
||
buildkite-agent artifact upload handler.zip | ||
mkdir -p dist | ||
zip -j dist/handler.zip lambda/bootstrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters