-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
30 lines (28 loc) · 956 Bytes
/
.gitlab-ci.yml
File metadata and controls
30 lines (28 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
stages:
- base-build
- dev-build
docker-base-image:
stage: base-build # build this first
variables:
REGISTRY: gitlab-registry.mito.hu/
TAG: $CI_BUILD_REF_NAME # branch or tag name
DEFAULT_TAG: "master" # set master as latest
BUILD_DIR: $CI_PROJECT_DIR
script:
- echo "docker-builder should not execute this"
tags:
- docker-builder
docker-dev-image:
stage: dev-build # build this second, because it depends on the base image
variables:
REGISTRY: gitlab-registry.mito.hu/
TAG: $CI_BUILD_REF_NAME # branch or tag name
TAG_SUFFIX: "dev" # available as :dev
DEFAULT_TAG: "master" # set master as latest
BUILD_DIR: $CI_PROJECT_DIR
DOCKERFILE: Dockerfile.dev
BUILD_WITH_TOKEN: "true" # needs to be able to pull base image
script:
- echo "docker-builder should not execute this"
tags:
- docker-builder