Commit abb8830e authored by Matthew Pickering's avatar Matthew Pickering

Test CI for just the linters job

parent 5e6b95b6
......@@ -4,7 +4,7 @@ services:
- docker:dind
variables:
CONTAINER_IMAGE: registry.gitlab.haskell.org/$CI_PROJECT_PATH
CONTAINER_IMAGE_BASE: registry.gitlab.haskell.org/ghc/ghc
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
......@@ -14,8 +14,9 @@ before_script:
build:
stage: build
script:
- export CONTAINER_IMAGE=$CONTAINER_IMAGE_BASE/linters
- 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
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest linters/
- 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