gitlab-build-images/.gitlab-ci.yml
Rémy Coutable 57fe03c0e4
Publish images with full Ruby version
Signed-off-by: Rémy Coutable <remy@rymai.me>
2024-05-28 09:21:45 +02:00

50 lines
1.2 KiB
YAML

# we support merge request workflow only
include:
- local: '.gitlab/ci/*.yml'
workflow:
rules:
- if: $CI_MERGE_REQUEST_IID
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_SERVER_HOST == "gitlab.com"'
variables:
PUSH_CUSTOM_IMAGE: "true"
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && ($CI_SERVER_HOST == "ops.gitlab.net" || $CI_SERVER_HOST == "dev.gitlab.org")'
variables:
PUSH_CUSTOM_IMAGE: "true"
BASE_BUILD_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE
default:
interruptible: true
image: ${BASE_BUILD_REGISTRY_IMAGE}/debian-bullseye-slim:docker-${DOCKER_VERSION}
services:
- docker:${DOCKER_VERSION}-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
tags:
- gitlab-org-docker
stages:
- automation
- custom
- customers
- docker
- e2e
- ep
- gitaly
- gitlab
- gitlab-assets
- gitlab-chart
- gitlab-cng
- gitlab-kas
- gitlab-workhorse
variables:
DOCKER_HOST: tcp://docker:2375
BASE_BUILD_REGISTRY_IMAGE: registry.gitlab.com/gitlab-org/gitlab-build-images
DOCKER_VERSION: "24.0.5"
dont-interrupt-me:
extends: .dont-interrupt-me
cache-chrome-chromium:
extends: .cache-google-chrome