Skip to content
Snippets Groups Projects
Commit b3bc18b3 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Improve gitlab-ci.yml

parent 9b9f7c0c
No related branches found
No related tags found
No related merge requests found
image: docker:latest
---
include:
- 'https://gitlab.esss.lu.se/ics-infrastructure/gitlab-ci-yml/raw/master/PreCommit.gitlab-ci.yml'
.runner_tags: &runner_tags
tags:
......@@ -23,17 +25,10 @@ stages:
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
check:
<<: *runner_tags
stage: check
image: registry.esss.lu.se/ics-docker/pre-commit:latest
before_script: []
script:
- pre-commit run --all-files
build:
<<: *runner_tags
stage: build
image: docker:latest
script:
- docker pull "$CONTAINER_CACHE_IMAGE" || true
- docker build --pull --cache-from "$CONTAINER_CACHE_IMAGE" -t "$CONTAINER_TEST_IMAGE" .
......@@ -71,6 +66,7 @@ analyse:
release-image:
<<: *runner_tags
stage: release
image: docker:latest
dependencies: []
script:
- docker pull "$CONTAINER_TEST_IMAGE"
......@@ -82,7 +78,7 @@ release-image:
deploy-staging:
<<: *runner_tags
stage: deploy
image: registry.esss.lu.se/ics-docker/tower-cli:3.3
image: registry.esss.lu.se/ics-docker/tower-cli
before_script: []
dependencies: []
script:
......@@ -120,7 +116,7 @@ pages:
deploy-production:
<<: *runner_tags
stage: deploy
image: registry.esss.lu.se/ics-docker/tower-cli:3.3
image: registry.esss.lu.se/ics-docker/tower-cli
before_script: []
dependencies: []
script:
......
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