mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
15 lines
456 B
YAML
15 lines
456 B
YAML
image: gitlab/dind
|
|
|
|
variables:
|
|
REPOSITORY: registry.gitlab.com/gitlab-org/gitlab-build-images
|
|
|
|
.build_and_deploy: &build_and_deploy
|
|
stage: build
|
|
script:
|
|
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
|
|
- docker build -t "$REPOSITORY:$CI_BUILD_NAME" -f "Dockerfile.$CI_BUILD_NAME" .
|
|
- docker push "$REPOSITORY:$CI_BUILD_NAME"
|
|
|
|
ruby-2.1: *build_and_deploy
|
|
ruby-2.2: *build_and_deploy
|
|
ruby-2.3: *build_and_deploy
|