signald-go/.gitlab-ci.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

stages:
- build
lint:
image: nixery.dev/shell/diffutils/go/golangci-lint
stage: build
2018-10-09 00:39:16 +00:00
before_script:
- cp /share/go/bin/go /bin && mkdir /tmp # fix weirdness from nixery image
- mkdir -p /go/src/src/gitlab.com/signald/signald-go
- cp -r * /go/src/src/gitlab.com/signald/signald-go
- cd /go/src/src/gitlab.com/signald/signald-go
script:
- golangci-lint run
- go mod tidy
- diff --color=always go.mod "${CI_PROJECT_DIR}/go.mod"
- diff --color=always go.sum "${CI_PROJECT_DIR}/go.sum"
2020-12-13 02:43:30 +00:00
build:x86:
stage: build
image: golang:latest
2018-10-09 00:39:16 +00:00
before_script:
- mkdir -p /go/src/gitlab.com/signald/signald-go
- cp -r * /go/src/gitlab.com/signald/signald-go
- cd /go/src/gitlab.com/signald/signald-go
script:
2020-12-13 00:33:29 +00:00
- go build -o "${CI_PROJECT_DIR}/signaldctl" ./cmd/signaldctl
artifacts:
paths:
2020-12-13 00:33:29 +00:00
- signaldctl
expire_in: 1 month
2020-12-13 02:43:30 +00:00
build:aarch64:
stage: build
2020-12-13 02:45:03 +00:00
tags: [arm-builder]
2020-12-13 02:43:30 +00:00
image: golang:latest
before_script:
- mkdir -p /go/src/gitlab.com/signald/signald-go
- cp -r * /go/src/gitlab.com/signald/signald-go
- cd /go/src/gitlab.com/signald/signald-go
script:
- go build -o "${CI_PROJECT_DIR}/signaldctl" ./cmd/signaldctl
artifacts:
paths:
- signaldctl
expire_in: 1 month