Commit f2318dfc authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix CI yaml syntax documentation [ci skip]

parent 78be7055
......@@ -278,26 +278,23 @@ The above script will:
`artifacts` is used to specify list of files and directories which should be attached to build after success.
1. Send all files in `binaries` and `.config`:
```
artifacts:
artifacts:
paths:
- binaries/
- .config
```
2. Send all git untracked files:
```
artifacts:
artifacts:
untracked: true
```
3. Send all git untracked files and files in `binaries`:
```
artifacts:
artifacts:
untracked: true
paths:
- binaries/
```
The artifacts will be send after the build success to GitLab and will be accessible in GitLab interface to download.
......@@ -307,46 +304,41 @@ This feature requires GitLab Runner v0.7.0 or higher.
`cache` is used to specify list of files and directories which should be cached between builds.
1. Cache all files in `binaries` and `.config`:
```
rspec:
rspec:
script: test
cache:
paths:
- binaries/
- .config
```
2. Cache all git untracked files:
```
rspec:
rspec:
script: test
cache:
untracked: true
```
3. Cache all git untracked files and files in `binaries`:
```
rspec:
rspec:
script: test
cache:
untracked: true
paths:
- binaries/
```
4. Locally defined cache overwrites globally defined options. This will cache only `binaries/`:
```
cache:
cache:
paths:
- my/files
rspec:
rspec:
script: test
cache:
paths:
- binaries/
```
The cache is provided on best effort basis, so don't expect that cache will be present.
For implementation details please check GitLab Runner.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment