Skip to content

Commit 3ae23af

Browse files
committed
Update example of .gitlab-ci.yml
1 parent bf86dc6 commit 3ae23af

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,44 @@
55

66
npm install -g simplify-pipeline
77

8+
Example .gitlab-ci.yml file:
9+
10+
```yaml
11+
image: node:lts-stretch
12+
stages:
13+
- build
14+
- test
15+
16+
package-build:
17+
stage: build
18+
before_script:
19+
- mkdir -p /root/.aws/
20+
- echo "[default]" > /root/.aws/credentials
21+
- echo "[default]" > /root/.aws/config
22+
script:
23+
- echo "TEST_FILE_CREAED-1" >> test-file.json
24+
25+
package-test:
26+
stage: test
27+
dependencies:
28+
- package-build
29+
script:
30+
- ls -la && cat test-file.json
31+
- cat .gitlab-ci.yml
32+
```
833
simplify-pipeline -f .gitlab-ci.yml list
934
1035
- build
1136
- test
12-
- deploy
1337
38+
Run the `build` stage:
39+
```bash
1440
simplify-pipeline -f .gitlab-ci.yml create build
41+
bash pipeline.sh build
42+
```
1543

44+
Run the `test` stage:
45+
```bash
46+
simplify-pipeline -f .gitlab-ci.yml create test
47+
bash pipeline.sh build
48+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplify-pipeline",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Simplify CLI - Easy Pipeline",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)