Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
latex-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
docker
latex-builder
Commits
83f10e68
Unverified
Commit
83f10e68
authored
Mar 10, 2017
by
MJDSys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial version, just include basic texlive + extras + make and dia
parents
Pipeline
#17
passed with stages
in 15 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
.gitlab-ci.yml
.gitlab-ci.yml
+38
-0
Dockerfile
Dockerfile
+3
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
83f10e68
# 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
Dockerfile
0 → 100644
View file @
83f10e68
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment