Merge branch 'leipert-use-gitlab-org-runners' into 'master'

Use gitlab-org runners per default

See merge request gitlab-org/gitlab-build-images!287
This commit is contained in:
Rémy Coutable 2020-04-16 09:49:33 +00:00
commit c9f39f3f12

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