-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (49 loc) · 1.14 KB
/
.gitlab-ci.yml
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
45
46
47
48
49
50
51
52
53
54
include:
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/packaging.yml'
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/packaging-arm.yml'
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/deployment.yml'
stages:
- build
- pre-package
- package
- post-package
- deploy
variables:
NG_BUILD_OUTPUT_PATH: dist
build:
stage: build
image: ${BUILD_IMAGE_NAME}:${BUILD_IMAGE_TAG}
variables:
BUILD_IMAGE_NAME: tarampampam/node
BUILD_IMAGE_TAG: 12.16-alpine
NG_BUILD_CONFIG_NAME: production
script:
- npm i
- npm run build -- -c ${NG_BUILD_CONFIG_NAME} --output-path ${NG_BUILD_OUTPUT_PATH}
cache:
paths:
- node_modules/
artifacts:
name: ${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}
paths:
- ${NG_BUILD_OUTPUT_PATH}/
only:
- branches
- tags
except:
- schedules
.docker-build:
variables:
DBLD_NG_BUILD_OUTPUT_PATH: ${NG_BUILD_OUTPUT_PATH}
.deploy:
variables:
STACK: tajinaste
SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
environment:
url: https://tajinaste.${DD_TRAEFIK_DOMAIN}