Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gitlab-ci-templates
gitlab-ci-templates
  • 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
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • infra
  • gitlab-ci-templatesgitlab-ci-templates
  • Merge Requests
  • !4

Merged
Opened Aug 24, 2019 by Kevin Daudt@kdaudt💻Owner
  • Report abuse
Report abuse

docker-image: use artifacts to persist images

  • Overview 0
  • Commits 1
  • Pipelines 5
  • Changes 1

The docker-image ci job relies on docker to persist images so that they can be used in different stages. This only works when all stages are executed on the same host.

This prevents the use of multiple runners, as different jobs may be executed on different runners.

To fix this, we can use the artifacts feature of gitlab. We use docker image save to create a tar archive of the image, which is then persisted by gitlab for following stages.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: alpine/infra/gitlab-ci-templates!4
Source branch: docker-image-use-artifacts

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.