-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
44 lines (39 loc) · 1.12 KB
/
.gitlab-ci.yml
File metadata and controls
44 lines (39 loc) · 1.12 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include:
- project: researchable/general/templates/gitlab/base
ref: master
file: docker/build.yml
# include:
# Adds the 'semantic releases' to the release stage
# - project: 'researchable/general/templates/gitlab/semantic-release'
# ref: master
# file: 'semantic_release.yml'
# Adds the 'docker deploy' based on the versions in the semantic relase to the deploy stage
# - project: 'researchable/general/templates/gitlab/docker-deploy'
# ref: master
# file: 'docker_deploy.yml'
# define pipline stages
stages:
- build
# - test
- release
variables:
KUBE_NAMESPACE: sdv-mvp-$CI_COMMIT_REF_NAME
PROJECT_NAME: sport-data-valley
CI: 'true'
# docker build variables
IMAGE_NAME: researchableuser/sdv-svc-questionnaires
IMAGE_TAGS: $CI_COMMIT_SHA
REGISTRY_USERNAME: $DOCKER_HUB_USERNAME
REGISTRY_PASSWORD: $DOCKER_HUB_PASSWORD
REGISTRY_HOST: docker.io
build_web_job:
extends: .docker_build_job
variables:
BUILD_ARG_PROJECT_NAME: $PROJECT_NAME
BUILD_ARG_RAILS_ENV: production
BUILD_ARG_NODE_ENV: production
only:
refs:
- master
- production
- develop