Commit 83f10e68 authored by MJDSys's avatar MJDSys

Initial version, just include basic texlive + extras + make and dia

parents
Pipeline #17 passed with stages
in 15 minutes and 32 seconds
# Official docker image.
image: docker.mjdsystems.ca/mjdsys/debian:master
services:
- docker:dind
stages:
- build
- deploy
build:
stage: build
script:
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common debootstrap
- curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable"
- apt-get update && apt-get install -y docker-ce
- export IMAGE_TAG=$(echo -en $CI_BUILD_REF_NAME | tr -c '[:alnum:]_.-' '-')
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
- docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
deploy to latest tag:
stage: deploy
script:
- apt-get update
- apt-get install -y apt-transport-https ca-certificates curl software-properties-common debootstrap
- curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable"
- apt-get update && apt-get install -y docker-ce
- export IMAGE_TAG=$(echo -en $CI_BUILD_REF_NAME | tr -c '[:alnum:]_.-' '-')
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker pull "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$IMAGE_TAG" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- master
FROM docker.mjdsystems.ca/mjdsys/debian
RUN apt-get update && apt-get install -y --no-install-recommends texlive-latex-extra dia make openssh-client && rm /var/lib/apt/lists/* /var/cache/apt/archives/* -rf
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