Commit f76e1297 authored by Lambert Theisen's avatar Lambert Theisen 🔥

Clean up CI

parent e8960729
# image: docker:stable
variables:
# GIT_STRATEGY: fetch
# DOCKER_TLS_CERTDIR: ""
# DOCKER_HOST: tcp://docker:2375
# DOCKER_DRIVER: overlay2
APP_DIRECTORY: .
DOCS_DIRECTORY: ${APP_DIRECTORY}/docs
# DOCS_LATEX_NAME: fenicsr13
# services:
# - docker:stable-dind # docker in docker
stages:
- prepare
- build
- test
- deploy
# **************************************************************************** #
# prepare
# **************************************************************************** #
prepare:docker:
stage: prepare
before_script:
......@@ -28,11 +24,6 @@ prepare:docker:
--tag $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
# --cache-from $CI_REGISTRY_IMAGE:latest
# --cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
# - docker push $CI_REGISTRY_IMAGE:latest
# when: manual
tags:
- shell
......@@ -40,23 +31,10 @@ prepare:docker:
# build
# **************************************************************************** #
# build:environment:
# stage: build
# before_script:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# script:
# - docker pull $CI_REGISTRY_IMAGE:latest || true
# - docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
# # - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA # no need
# - docker push $CI_REGISTRY_IMAGE:latest
# when: manual
build:docs:
stage: build
dependencies:
- prepare:docker
# before_script:
# - docker run -i $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
image:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
entrypoint: [""]
......
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