WIP: build binary and container

This commit is contained in:
Florian Klink 2019-11-22 16:56:12 +01:00
parent 9c36bb0e6c
commit fecbf8b3e2
3 changed files with 19 additions and 1 deletions

4
.buildkite/build.sh Executable file
View 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
View 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/*"

View file

@ -6,6 +6,7 @@ let
in
pkgs.mkShell {
buildInputs = [
pkgs.go_1_12
pkgs.statik
];
}