added runner tags so docker builds get assigned a runner

This commit is contained in:
Kai Kriegel 2020-10-06 13:23:09 +00:00
parent 59f090cd91
commit bbac5b3dda

View File

@ -65,7 +65,6 @@ test:cargo:
- docker - docker
build:docker-master: build:docker-master:
stage: build
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
@ -75,9 +74,11 @@ build:docker-master:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
only: only:
- master - master
tags:
- linux
- docker
build:docker-releases: build:docker-releases:
stage: build
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
@ -87,9 +88,11 @@ build:docker-releases:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only: only:
- tags - tags
tags:
- linux
- docker
build:docker-development: build:docker-development:
stage: build
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
@ -99,6 +102,9 @@ build:docker-development:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:dev-$CI_COMMIT_TAG - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:dev-$CI_COMMIT_TAG
only: only:
- development - development
tags:
- linux
- docker
# cache dependencies and build environment to speed up setup # cache dependencies and build environment to speed up setup
cache: cache: