-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pack.yml
85 lines (71 loc) · 1.93 KB
/
pack.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
# Configuration for pack.gl pipeline with stages, steps, and dependencies
stages:
- name: Build Stage
steps:
- name: Compile Source
action: build
options:
minify: true
sourcemap: true
- name: Generate Assets
action: build
options:
target: assets
optimize: true
- name: Testing Stage
steps:
- name: Unit Tests
action: test
options:
framework: jest
coverage: true
- name: Integration Tests
action: test
options:
framework: mocha
database: test-db
dependsOn:
- Build Stage # This stage depends on the completion of the Build Stage
- name: Linting Stage
steps:
- name: Lint Code
action: lint
options:
fix: true
format: eslint
dependsOn:
- Build Stage # This stage also depends on the Build Stage
- name: Packaging Stage
steps:
- name: Create Archive
action: package
options:
format: zip
outputDir: dist
- name: Package Docker Image
action: package
options:
format: docker
tag: latest
dependsOn:
- Testing Stage # Packaging Stage depends on the Testing Stage
- name: Deployment Stage
steps:
- name: Deploy to Staging
action: deploy
options:
environment: staging
server: staging.example.com
- name: Deploy to Production
action: deploy
options:
environment: production
server: prod.example.com
canary: true
dependsOn:
- Packaging Stage # Deployment Stage depends on the Packaging Stage
# Global options applicable to the entire pipeline
globalOptions:
logLevel: info # Log level for the pipeline (verbose, info, warn, error)
stepTimeout: 30000 # Timeout for each step in milliseconds