-
Notifications
You must be signed in to change notification settings - Fork 55
/
pipeline.yml
61 lines (59 loc) · 1.63 KB
/
pipeline.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
55
56
57
58
59
60
61
version: "1.1"
on:
push:
branches:
- master
stages:
- stage:
- git-checkout:
version: "1.0"
- stage:
- extract-repo-version:
params:
git_dir: ${{ dirs.git-checkout }}
- stage:
- js:
version: "1.0"
params:
workdir: ${{ dirs.git-checkout }}
dependency_cmd: npm i
build_cmd: npm run build
dest_dir: ./dest
container_type: spa
resources:
cpu: 1
mem: 4096
caches:
- path: ${{ dirs.git-checkout }}/node_modules
- stage:
- custom-script:
alias: trans
commands:
- echo "FROM ${{ outputs.js.image }}" > Dockerfile
- stage:
- dockerfile:
alias: build-image
params:
workdir: ${{ dirs.trans }}
path: ${{ dirs.trans }}/Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
image:
name: docs
tag: ${{ outputs.extract-repo-version.image_tag }}
- stage:
- release:
params:
tag_version: ${{ outputs.extract-repo-version.version }}
dice_yml: ${{ dirs.git-checkout }}/dice.yml
image:
doc: ${{ outputs.build-image.image }}
- stage:
- dice:
params:
release_name: ${{ outputs.extract-repo-version.version }}
workspace: TEST
application_name: docs
type: application