Commit 5e6b95b6 authored by Matthew Pickering's avatar Matthew Pickering

Add simple gitlab.yml

parent 8dd831a5
image: docker:stable
services:
- docker:dind
variables:
CONTAINER_IMAGE: registry.gitlab.haskell.org/$CI_PROJECT_PATH
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.haskell.org
build:
stage: build
script:
- docker pull $CONTAINER_IMAGE:latest || true
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest .
#- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
#- docker push $CONTAINER_IMAGE:latest
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