stages: - test - build test: stage: test image: golang:1.15.3-alpine3.12 script: - go test ./... build: stage: build image: docker:latest services: - docker:dind script: docker build -t llehouerou/dnsupdater:latest