Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
overleaf-ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FS Info TU Dortmund
Administration
overleaf-ldap
Commits
0cfffbf8
Verified
Commit
0cfffbf8
authored
3 years ago
by
David Mehren
Browse files
Options
Downloads
Patches
Plain Diff
Build with kaniko
parent
99efc955
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-50
17 additions, 50 deletions
.gitlab-ci.yml
with
17 additions
and
50 deletions
.gitlab-ci.yml
+
17
−
50
View file @
0cfffbf8
# Official docker image.
image
:
image
:
docker:latest
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_BUILDKIT
:
1
TEXLIVE_IMAGE_UPSTREAM
:
texlive/texlive:latest
TEXLIVE_IMAGE
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/${TEXLIVE_IMAGE_UPSTREAM}
# Docker in Docker Service
services
:
-
name
:
docker:dind
command
:
[
"
--experimental"
]
before_script
:
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
mkdir -p /kaniko/.docker
-
docker login -u "$CI_DEPENDENCY_PROXY_USER" -p "$CI_DEPENDENCY_PROXY_PASSWORD" $CI_DEPENDENCY_PROXY_SERVER
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
source environment
-
source environment
build-main
:
build-main
:
script
:
script
:
-
docker build
-
/kaniko/executor
--build-arg BUILDKIT_INLINE_CACHE=1
--cache=true
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--cache-from $CI_REGISTRY_IMAGE:stage-src
--target src
-t "$CI_REGISTRY_IMAGE:stage-src"
-t "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:stage-src"
-
docker push "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG"
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--pull
--cache-from $CI_REGISTRY_IMAGE:stage-texlive-update
--target texlive-update
-t "$CI_REGISTRY_IMAGE:stage-texlive-update"
-t "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:stage-texlive-update"
-
docker push "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG"
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg TEXLIVE_IMAGE="${TEXLIVE_IMAGE}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--pull
--context $CI_PROJECT_DIR
--cache-from $CI_REGISTRY_IMAGE
--dockerfile $CI_PROJECT_DIR/Dockerfile
--target app --squash
--destination "$CI_REGISTRY_IMAGE"
-t "$CI_REGISTRY_IMAGE"
--destination "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
-t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE"
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
only
:
only
:
-
main
-
main
build
:
build
:
script
:
script
:
-
docker build
-
/kaniko/executor
--
build-arg BUILDKIT_INLINE_CACHE=1
--
cache=true
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg TEXLIVE_IMAGE="${TEXLIVE_IMAGE}"
--build-arg TEXLIVE_IMAGE="${TEXLIVE_IMAGE}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--pull
--context $CI_PROJECT_DIR
--cache-from "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
--dockerfile $CI_PROJECT_DIR/Dockerfile
--cache-from "$CI_REGISTRY_IMAGE"
--destination "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
-t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
except
:
except
:
-
main
-
main
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment