Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
docker
jekyll-lcsb
Commits
3bee1069
Commit
3bee1069
authored
Mar 04, 2020
by
Jacek Lebioda
Browse files
feat: Use caching for both image generation
parent
b012af61
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3bee1069
...
...
@@ -25,7 +25,7 @@ build and publish the image:
# Build the new version, assign new tag and `latest` tag
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:latest .
-
docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
-
docker build
--cache-from $CI_REGISTRY_IMAGE:latest
-t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
# Push the newly built version to the registry
-
docker push $CI_REGISTRY_IMAGE
...
...
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