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
B
build-images
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
ISC Open Source Projects
build-images
Commits
3846e6d9
Commit
3846e6d9
authored
Mar 05, 2018
by
Ondřej Surý
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable caching when building docker images
parent
a72e378e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
No files found.
.gitlab-ci.yml
View file @
3846e6d9
...
...
@@ -19,7 +19,7 @@ stages:
-
docker info
script
:
-
docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" ||
true
-
docker build --
cache-from "$CI_REGISTRY_IMAGE/$CI_JOB_NAME"
-t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$(echo $CI_JOB_NAME | sed -e 's,:,/,')"
-
docker build --
no-cache
-t "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" "docker/$(echo $CI_JOB_NAME | sed -e 's,:,/,')"
-
docker push "$CI_REGISTRY_IMAGE/$CI_JOB_NAME"
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
# - docker pull "$CI_REGISTRY_IMAGE/$CI_JOB_NAME" || true
...
...
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