From 2969a4876e9ad86b9406fba4c4b6776e2ec1af33 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Mon, 26 Oct 2020 21:50:50 +0400 Subject: [PATCH] test ci --- .gitlab-ci.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb167e6..606884e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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