mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
21 lines
506 B
YAML
21 lines
506 B
YAML
image: docker:git
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
variables:
|
|
DOCKER_DRIVER: overlay
|
|
|
|
before_script:
|
|
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
|
|
|
|
.build_and_deploy: &build_and_deploy
|
|
stage: build
|
|
script:
|
|
- docker build -t "$CI_REPOSITORY_IMAGE:$CI_BUILD_NAME" -f "Dockerfile.$CI_BUILD_NAME" .
|
|
- docker push "$CI_REPOSITORY_IMAGE:$CI_BUILD_NAME"
|
|
|
|
ruby-2.1: *build_and_deploy
|
|
ruby-2.2: *build_and_deploy
|
|
ruby-2.3: *build_and_deploy
|
|
www-gitlab-com: *build_and_deploy
|