Commit 0b471145 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

chore: Merge branch '21-build-get-trigerred-on-all-branches' into 'master'

Resolve "Build get trigerred on all branches"

Closes #21

See merge request core-services/r3lab/r3-pages!27
parents d070311b e9a67eaf
Pipeline #22195 passed with stages
in 2 minutes and 18 seconds
......@@ -27,9 +27,11 @@ build the website:
Deploy to production:
stage: deploy
image: alpine:3.1
only:
- tags
- master
rules:
# Run only on master...
- if: $CI_COMMIT_BRANCH == "master"
# ...or if the commit if tagged
- if: $CI_COMMIT_TAG
before_script:
- 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s)
......@@ -50,8 +52,8 @@ Deploy to production:
Create the backup:
stage: backup
image: alpine:3.1
only:
- schedules
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
before_script:
- 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s)
......
Supports Markdown
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