Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Élus Étudiants
Site des élu·e·s
Commits
fc25a0b0
Commit
fc25a0b0
authored
Dec 09, 2020
by
Andres Maldonado
Browse files
[.gitlab-ci.yml] Créer des pipelines seulement sur la branche par défaut (master)
parent
591e64b7
Pipeline
#71229
waiting for manual action with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fc25a0b0
...
...
@@ -4,18 +4,24 @@ variables:
JEKYLL_ENV
:
production
LC_ALL
:
C.UTF-8
# Créer des pipelines seulement sur la branche par défaut (master)
workflow
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
pages
:
stage
:
deploy
script
:
-
bundle exec jekyll build -d public
-
bundle exec jekyll build -d public
artifacts
:
paths
:
-
public
-
public
rules
:
-
changes
:
-
"
_posts/**"
-
"
assets/**"
when
:
always
-
when
:
manual
-
changes
:
-
"
_posts/**"
-
"
assets/**"
when
:
always
-
when
:
manual
tags
:
-
docker
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