Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IT-division Public
dockerimages
centosfpmcookery
Commits
6bb26c2c
Commit
6bb26c2c
authored
Nov 26, 2020
by
Torstein Leversund
Browse files
shorter image id, and use docker stable image
parent
5017755d
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6bb26c2c
image
:
docker:
19.03.1
image
:
docker:
stable
stages
:
-
build
...
...
@@ -11,6 +11,7 @@ build:
script
:
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_
SHORT_
SHA --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_
SHORT_
SHA
-
docker push $CI_REGISTRY_IMAGE:latest
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