-
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 ac87d1a
Showing
12 changed files
with
92 additions
and
56 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 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,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 |
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,19 +1,45 @@ | ||
version: "3.9" | ||
|
||
services: | ||
agent: | ||
build: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
dockerfile: Dockerfile.build | ||
volumes: | ||
- ../:/workspace:cached | ||
working_dir: /workspace | ||
- ../:/work:cached | ||
- ~/gocache:/gocache | ||
- ~/gomodcache:/gomodcache | ||
working_dir: /work | ||
environment: | ||
- BUILDKITE_BUILD_NUMBER | ||
- GOCACHE=/gocache | ||
- GOMODCACHE=/gomodcache | ||
|
||
test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.test | ||
volumes: | ||
- ../:/work:cached | ||
- ~/gocache:/gocache | ||
- ~/gomodcache:/gomodcache | ||
working_dir: /work | ||
environment: | ||
- GOCACHE=/gocache | ||
- GOMODCACHE=/gomodcache | ||
|
||
release: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.release | ||
volumes: | ||
- ../:/work:cached | ||
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_BRANCH | ||
- BUILDKITE_TAG | ||
- BUILDKITE_AGENT_ACCESS_TOKEN | ||
- GITHUB_RELEASE_ACCESS_TOKEN | ||
- RELEASE_DRY_RUN |
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