Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Outillage
prezbuilder
Commits
31bc0d5c
Commit
31bc0d5c
authored
Jun 30, 2020
by
Guillaume Perréal
Browse files
Tente d'accélerer le build de l'image Docker en réutilisant l'image précédente.
parent
b407cd6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
31bc0d5c
...
...
@@ -35,7 +35,8 @@ docker-image:
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script
:
-
docker build --tag "$IMAGE" .
-
docker pull "$IMAGE" || exit
0
-
docker build --cache-from "node:buster-12,$IMAGE" --tag "$IMAGE" .
-
docker run --rm "$IMAGE" build src public
-
"
[
-e
public/index.html
]"
-
rm -rf public/*
...
...
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