Commit e02c0033 authored by Tomas's avatar Tomas

chore: Add .gitlab-ci.yml

parent 273b0e49
Pipeline #21055 passed with stages
in 5 minutes and 5 seconds
image: privacybydesign/golang:latest
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- /go/pkg/mod
stages:
- test
- build
variables:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
OUTPUT_NAME: atumd-${CI_COMMIT_REF_SLUG}-${GOOS}-${GOARCH}
before_script:
- set -euxo pipefail
- go get
unit_tests:
stage: test
script:
- go test ./...
binaries:
stage: build
artifacts:
paths:
- artifacts/*
script:
- mkdir -p artifacts
- go build -a -ldflags '-extldflags "-static"' -o "artifacts/$OUTPUT_NAME" .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment