28 lines
808 B
YAML
28 lines
808 B
YAML
stages:
|
|
- build
|
|
|
|
lint:
|
|
image: nixery.dev/shell/go/golangci-lint
|
|
stage: build
|
|
before_script:
|
|
- cp /share/go/bin/go /bin && mkdir /tmp # fix weirdness from nixery image
|
|
- mkdir -p /go/src/git.callpipe.com/finn/signald-go
|
|
- cp -r * /go/src/git.callpipe.com/finn/signald-go
|
|
- cd /go/src/git.callpipe.com/finn/signald-go
|
|
script:
|
|
- golangci-lint run
|
|
|
|
build:
|
|
stage: build
|
|
image: golang:latest
|
|
before_script:
|
|
- mkdir -p /go/src/git.callpipe.com/finn/signald-go
|
|
- cp -r * /go/src/git.callpipe.com/finn/signald-go
|
|
- cd /go/src/git.callpipe.com/finn/signald-go
|
|
script:
|
|
- go get ./... # TODO: Improve how dependencies are handled
|
|
- go build -o "${CI_PROJECT_DIR}/signald-cli" ./cmd/signald-cli
|
|
artifacts:
|
|
paths:
|
|
- signald-cli
|
|
expire_in: 1 month
|