2020-10-26 09:42:07 +00:00
|
|
|
stages:
|
2020-10-26 17:50:50 +00:00
|
|
|
- test
|
2020-10-26 09:42:07 +00:00
|
|
|
- build
|
|
|
|
|
2020-10-26 17:50:50 +00:00
|
|
|
test:
|
|
|
|
stage: test
|
2020-10-26 17:52:25 +00:00
|
|
|
image: golang:1.15.3
|
2020-10-26 09:42:07 +00:00
|
|
|
script:
|
2020-10-26 17:50:50 +00:00
|
|
|
- go test ./...
|
2020-10-26 16:46:59 +00:00
|
|
|
|
2020-10-26 17:50:50 +00:00
|
|
|
build:
|
|
|
|
stage: build
|
2020-10-26 16:46:59 +00:00
|
|
|
image: docker:latest
|
2020-10-26 17:50:50 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
2020-10-26 16:46:59 +00:00
|
|
|
script:
|
2020-10-26 17:50:50 +00:00
|
|
|
docker build -t llehouerou/dnsupdater:latest
|