forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
859278b
commit 86eb051
Showing
14 changed files
with
166 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# When should run | ||
.dev-staging-master: | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master|staging|dev)$/' | ||
when: on_success | ||
|
||
.on-master-staging: | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master|staging)$/' | ||
when: on_success | ||
|
||
.on-master: | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master)$/' | ||
when: on_success | ||
|
||
.on-community-tag: | ||
rules: | ||
- if: '$CI_COMMIT_TAG =~ /^white-v[0-9.]+$/' | ||
when: on_success | ||
|
||
.pipeline-control-test: | ||
rules: | ||
- if: $FULL_TEST || $DAILY_TEST | ||
when: on_success | ||
|
||
.be-built: | ||
rules: | ||
- if: '$CI_COMMIT_TAG || $BUILD_TEST || $FULL_TEST || $DAILY_TEST' | ||
when: on_success | ||
|
||
.be-uploaded: | ||
rules: | ||
- if: '$BUILD_TEST || $FULL_TEST || $DAILY_TEST' | ||
when: on_success | ||
|
||
|
||
# Ignore | ||
.ignore-on-tag: | ||
rules: | ||
- if: '$CI_COMMIT_TAG' | ||
when: never | ||
|
||
.ignore-on-master: | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME =~ /^.*\/(master)$/' | ||
when: never | ||
|
||
.ignore-on-build: | ||
rules: | ||
- if: $BUILD_TEST | ||
when: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
update_github: | ||
image: python:3 | ||
stage: publish | ||
script: | ||
- git remote set-url github https://${GH_USER}:${GH_TOKEN}@github.com/infobyte/faraday.git | ||
- git push github $CI_COMMIT_REF_NAME:$DESTINY_BRANCH | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME == "white/master"' | ||
variables: | ||
DESTINY_BRANCH: master | ||
when: on_success | ||
- if: '$CI_COMMIT_REF_NAME == "white/staging"' | ||
variables: | ||
DESTINY_BRANCH: staging | ||
when: on_success | ||
tags: | ||
- faradaytests | ||
|
||
|
||
tag_on_github: | ||
image: python:3 | ||
stage: publish | ||
script: | ||
- git remote set-url github https://${GH_USER}:${GH_TOKEN}@github.com/infobyte/faraday.git | ||
- export FARADAY_VERSION=$(eval $IMAGE_TAG) | ||
- CHANGELOG/check_pre_tag.py | ||
- git push github $CI_COMMIT_TAG:master | ||
- git tag v$FARADAY_VERSION -m "$(cat CHANGELOG/$FARADAY_VERSION/community.md)" | ||
- git push github v$FARADAY_VERSION | ||
- scripts/github_release.py --deb-file ./faraday-server_amd64.deb --rpm-file ./faraday-server_amd64.rpm | ||
rules: | ||
- !reference [ .on-community-tag, rules ] | ||
dependencies: | ||
- generate_deb | ||
- generate_rpm | ||
tags: | ||
- faradaytests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.