Skip to content
Snippets Groups Projects
Commit a2854fd9 authored by Marcel Amirault's avatar Marcel Amirault Committed by Shinya Maeda
Browse files

Update Pages template examples to default branch

We don't need to hardcode to master, we should use the
default branch CI/CD variable
parent 8df02215
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 33 deletions
---
title: Update Pages template examples to default branch
merge_request: 56298
author:
type: other
Loading
Loading
@@ -11,5 +11,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -9,5 +9,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -13,5 +13,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -8,5 +8,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -11,5 +11,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -13,5 +13,5 @@ pages:
paths:
- node_modules
key: project
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -10,7 +10,8 @@ test:
script:
- hugo
except:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
pages:
script:
Loading
Loading
@@ -19,4 +20,5 @@ pages:
paths:
- public
only:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -11,7 +11,8 @@ test:
- pip install hyde
- hyde gen
except:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
pages:
stage: deploy
Loading
Loading
@@ -22,4 +23,5 @@ pages:
paths:
- public
only:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -18,7 +18,8 @@ test:
paths:
- test
except:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
pages:
stage: deploy
Loading
Loading
@@ -28,4 +29,5 @@ pages:
paths:
- public
only:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -33,5 +33,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -8,5 +8,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -12,5 +12,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -12,7 +12,8 @@ test:
- bundle install --path vendor
- bundle exec middleman build
except:
- master
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 
pages:
script:
Loading
Loading
@@ -23,5 +24,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -8,5 +8,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -11,5 +11,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -25,5 +25,5 @@ pages:
artifacts:
paths:
- public
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment