mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 10:32:56 +01:00
Fix .gitlab-ci.yml
This commit is contained in:
parent
5211fbff58
commit
61d3722862
1 changed files with 10 additions and 5 deletions
|
|
@ -1,14 +1,19 @@
|
||||||
image: gitlab/dind
|
image: docker:git
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
REPOSITORY: registry.gitlab.com/gitlab-org/gitlab-build-images
|
DOCKER_DRIVER: overlay
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
|
||||||
|
|
||||||
.build_and_deploy: &build_and_deploy
|
.build_and_deploy: &build_and_deploy
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
|
- docker build -t "$CI_REPOSITORY_IMAGE:$CI_BUILD_NAME" -f "Dockerfile.$CI_BUILD_NAME" .
|
||||||
- docker build -t "$REPOSITORY:$CI_BUILD_NAME" -f "Dockerfile.$CI_BUILD_NAME" .
|
- docker push "$CI_REPOSITORY_IMAGE:$CI_BUILD_NAME"
|
||||||
- docker push "$REPOSITORY:$CI_BUILD_NAME"
|
|
||||||
|
|
||||||
ruby-2.1: *build_and_deploy
|
ruby-2.1: *build_and_deploy
|
||||||
ruby-2.2: *build_and_deploy
|
ruby-2.2: *build_and_deploy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue