Use gitlab-org runners per default

See: https://gitlab.com/gitlab-org/gitlab/-/issues/212970
This commit is contained in:
Lukas Eipert 2020-04-16 11:00:03 +02:00
parent ea81ddf7bc
commit c61c2252f1
No known key found for this signature in database
GPG key ID: 148BEA37CB35B2AC

View file

@ -1,22 +1,23 @@
default:
image: docker:git
services:
- docker:19.03.0-dind
before_script:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- source scripts/build-helpers.sh
tags:
- gitlab-org-docker
stages:
- build
- test
- automation
services:
- docker:19.03.0-dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
FORCE_BUILD: "false"
before_script:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- source scripts/build-helpers.sh
.test_build: &test_build
stage: test
script:
@ -26,8 +27,6 @@ before_script:
- docker build -f "Dockerfile.$1" .
except:
- master
tags:
- docker
.build_and_deploy: &build_and_deploy
stage: build
@ -36,8 +35,6 @@ before_script:
- docker push "$CI_REGISTRY_IMAGE:$CI_JOB_NAME"
only:
- master
tags:
- docker
.test_custom: &test_custom
stage: test
@ -48,8 +45,6 @@ before_script:
- ./scripts/custom-docker-build $1
except:
- master
tags:
- docker
.build_and_deploy_custom: &build_and_deploy_custom
stage: build
@ -58,8 +53,6 @@ before_script:
- push_if_needed "$CI_REGISTRY_IMAGE:$CI_JOB_NAME"
only:
- master
tags:
- docker
# Tests