~jojo/Carth

432d36c498a9160b040b74067e9decaaaf5d825f — JoJo 2 years ago 54b6ecf
DIY Dockerfile for the GitLab CI
2 files changed, 8 insertions(+), 9 deletions(-)

M .gitlab-ci.yml
A Dockerfile
M .gitlab-ci.yml => .gitlab-ci.yml +1 -9
@@ 1,12 1,4 @@
image: fpco/stack-build:latest

# If you have dependencies that aren't included in the Dockerfile.
# You might also consider making a new Docker image based on stack-build
# and pushing it to GitLab's registry to save on build time.
before_script:
  - apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main"
  - apt update -y
  - apt install -y llvm-8
image: jojoz/stack-build-llvm:latest

# https://docs.gitlab.com/ee/ci/yaml/#stages
# jobs of the same stage are executed in parallel

A Dockerfile => Dockerfile +7 -0
@@ 0,0 1,7 @@
# Dockerfile to use with GitLab CI

FROM fpco/stack-build:latest

RUN apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" && \
    apt update -y && \
    apt install -y llvm-8
\ No newline at end of file