Skip to content
Snippets Groups Projects
Commit 2313a9a4 authored by Erick Hitter's avatar Erick Hitter
Browse files

Test an automated build using Golang

Fixes #2
parent a307cf2e
No related branches found
No related tags found
1 merge request!5Automated image builds for registry
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
lint_dockerfile:
stage: test
image: hadolint/hadolint:latest-debian
script:
- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment