Adding .gitlab-ci.yml
This commit is contained in:
parent
f57d355631
commit
5c52e76b11
1 changed files with 20 additions and 0 deletions
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
image: golang:1.19
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
|
unit-test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- go test -v ./...
|
||||||
|
|
||||||
|
compile:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- mkdir -p build
|
||||||
|
- go build -o build/dnsupdater cmd/dnsupdater/main.go
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build
|
||||||
Loading…
Add table
Add a link
Reference in a new issue