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
ccbd9099
Commit
ccbd9099
authored
Jul 06, 2020
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-179' into 'master'
Yaml formatting improvements See merge request gitlab-org/gitlab!36007
parents
4ba5d833
a4db78c9
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 @
ccbd9099
...
...
@@ -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