This commit is contained in:
Laurent Le Houerou 2020-10-26 21:50:50 +04:00
parent be532600d9
commit 2969a4876e

View File

@ -1,21 +1,17 @@
image: golang:1.15
stages:
- test
- build
- deploy
test:
stage: test
image: golang:1.15.3-alpine3.12
script:
- go test ./...
build:
stage: build
script:
- make
deploy:
image: docker:latest
stage: deploy
only:
refs:
- master
services:
- docker:dind
script:
- docker build . -t llehouerou/dnsupdater:latest
- docker push llehouerou/dnsupdater:latest
docker build -t llehouerou/dnsupdater:latest