Commit e9a67eaf authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

feat: CI script uses rules instead of `only` syntax

parent d070311b
......@@ -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)
......
Markdown is supported
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