Commit 2313a9a4 authored by Erick Hitter's avatar Erick Hitter

Test an automated build using Golang

Fixes #2
parent a307cf2e
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
lint_dockerfile: lint_dockerfile:
stage: test stage: test
image: hadolint/hadolint:latest-debian image: hadolint/hadolint:latest-debian
script: script:
- find . -name "Dockerfile" -execdir hadolint {} \; - find . -name "Dockerfile" -execdir hadolint {} \;
build-golang-master:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY/docker/images/golang:latest" ./golang/latest
- docker push "$CI_REGISTRY/docker/images/golang:latest"
only:
- master
build-golang-dev:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY/docker/images/golang:$CI_COMMIT_REF_SLUG" ./golang/latest
# - docker push "$CI_REGISTRY/docker/images/golang:$CI_COMMIT_REF_SLUG"
except:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment