Skip to content

Commit

Permalink
basic .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LynxAbraxas committed Oct 8, 2018
1 parent 5cd0b80 commit 3d29ea7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitlab-ci.yml
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

2 comments on commit 3d29ea7

@DEVoytas
Copy link
Contributor

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

@LynxAbraxas
Copy link
Contributor Author

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.

Please sign in to comment.