WIP: build binary and container
This commit is contained in:
parent
9c36bb0e6c
commit
fecbf8b3e2
3 changed files with 19 additions and 1 deletions
4
.buildkite/build.sh
Executable file
4
.buildkite/build.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
export GOPATH=~/go
|
||||
go generate
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -ldflags '-extldflags \"-static\"' -o gerrit-queue
|
13
.buildkite/pipeline.yml
Normal file
13
.buildkite/pipeline.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
steps:
|
||||
- command: |
|
||||
. /var/lib/buildkite-agent/.nix-profile/etc/profile.d/nix.sh
|
||||
# produces a ./gerrit-queue
|
||||
nix-shell --run ./.buildkite/build.sh
|
||||
|
||||
mkdir -p out
|
||||
mv ./gerrit-queue out/gerrit-queue-$(git describe --tags)
|
||||
|
||||
label: "Build (linux/amd64)"
|
||||
timeout: 30
|
||||
artifact_paths:
|
||||
- "out/*"
|
|
@ -6,6 +6,7 @@ let
|
|||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.statik
|
||||
pkgs.go_1_12
|
||||
pkgs.statik
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue