-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cd0b80
commit 3d29ea7
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
image: docker:stable | ||
|
||
services: | ||
- docker:dind | ||
|
||
before_script: | ||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY | ||
|
||
stages: | ||
- build | ||
|
||
variables: | ||
|
||
IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME | ||
|
||
build: | ||
stage: build | ||
script: | ||
- docker pull $IMAGE_TAG:builder-latest || true | ||
- docker build --pull | ||
--cache-from $IMAGE_TAG:builder-latest | ||
--tag $IMAGE_TAG:builder-latest | ||
--target builder | ||
. | ||
- docker push $IMAGE_TAG:builder-latest | ||
retry: 2 |
3d29ea7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work with GH? Looks like it is something specific to GL
3d29ea7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is specific to GL, which aims at offering an "all-in-one" solution including CI, which GH kind of "outsources" to travis, circleci etc. I'm quite lost with all the options that are available for these purposes and am always very happy when I find out that GL has a feature already included.