test ci
This commit is contained in:
parent
be532600d9
commit
2969a4876e
@ -1,21 +1,17 @@
|
|||||||
image: golang:1.15
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
image: golang:1.15.3-alpine3.12
|
||||||
|
script:
|
||||||
|
- go test ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
|
||||||
- make
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
stage: deploy
|
services:
|
||||||
only:
|
- docker:dind
|
||||||
refs:
|
|
||||||
- master
|
|
||||||
script:
|
script:
|
||||||
- docker build . -t llehouerou/dnsupdater:latest
|
docker build -t llehouerou/dnsupdater:latest
|
||||||
- docker push llehouerou/dnsupdater:latest
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user