Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a4db78c9
Commit
a4db78c9
authored
Jul 06, 2020
by
Ben Bodenmiller
Committed by
Marcel Amirault
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yaml formatting improvements
parent
ff288a43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+5
-5
No files found.
doc/ci/yaml/README.md
View file @
a4db78c9
...
...
@@ -1341,7 +1341,7 @@ docker build:
script
:
docker build -t my-image:$CI_COMMIT_REF_SLUG .
rules
:
-
changes
:
-
Dockerfile
-
Dockerfile
when
:
manual
allow_failure
:
true
```
...
...
@@ -1367,7 +1367,7 @@ job:
script
:
docker build -t my-image:$CI_COMMIT_REF_SLUG .
rules
:
-
exists
:
-
Dockerfile
-
Dockerfile
```
You can also use glob patterns to match multiple files in any directory within
...
...
@@ -1380,7 +1380,7 @@ job:
script
:
bundle exec rspec
rules
:
-
exists
:
-
spec/**.rb
-
spec/**.rb
```
NOTE:
**Note:**
...
...
@@ -1427,8 +1427,8 @@ docker build:
rules
:
-
if
:
'
$VAR
==
"string
value"'
changes
:
# Will include the job and set to when:manual if any of the follow paths match a modified file.
-
Dockerfile
-
docker/scripts/*
-
Dockerfile
-
docker/scripts/*
when
:
manual
# - when: never would be redundant here, this is implied any time rules are listed.
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment