Commit 8e6c052c authored by echel0n's avatar echel0n
Browse files

Restricted CI/CD jobs to upstream.

Converted build/deploy pre-release/release jobs to be manually triggered.
parent d0c058bd
stages:
# - review_webpack
- review_webpack
- review_docker
- review_deploy
- release_build
- release_sentry
- release_deploy
#review:webpack:
# stage: review_webpack
# image:
# name: nikolaik/python-nodejs:python3.7-nodejs10-alpine
# variables:
# NODE_ENV: "development"
# script:
# - apk add --no-cache git gcc libffi-dev python3-dev musl-dev openssl-dev
# - npm install -qs
# - npm run build
# only:
# - merge_requests
# cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - sickrage/core/webserver/static/
review:webpack:
stage: review_webpack
image:
name: nikolaik/python-nodejs:python3.7-nodejs10-alpine
variables:
NODE_ENV: "development"
script:
- apk add --no-cache git gcc libffi-dev python3-dev musl-dev openssl-dev
- npm install -qs
- npm run build
only:
- merge_requests@sickrage/sickrage
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- sickrage/core/webserver/static/
review:docker:
stage: review_docker
# dependencies:
# - review:webpack
dependencies:
- review:webpack
image:
name: docker:latest
entrypoint: ["/bin/sh", "-c"]
......@@ -43,9 +43,9 @@ review:docker:
- test ! -z "${CI_COMMIT_TAG}" && docker push "${CI_REGISTRY_IMAGE}:latest"
- docker push "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}"
only:
- merge_requests
# cache:
# key: ${CI_COMMIT_REF_SLUG}
- merge_requests@sickrage/sickrage
cache:
key: ${CI_COMMIT_REF_SLUG}
review:deploy:
stage: review_deploy
......@@ -76,7 +76,7 @@ review:deploy:
url: https://review.sickrage.ca/$CI_COMMIT_REF_SLUG
on_stop: review:stop
only:
- merge_requests
- merge_requests@sickrage/sickrage
review:stop:
stage: review_deploy
......@@ -96,9 +96,9 @@ review:stop:
name: review/$CI_COMMIT_REF_NAME
action: stop
only:
- merge_requests
- merge_requests@sickrage/sickrage
release:build:master:
Build and Deploy Release:
stage: release_build
image:
name: nikolaik/python-nodejs:python3.7-nodejs10-alpine
......@@ -132,7 +132,7 @@ release:build:master:
- git push https://$GIT_ACCESS_USER:[email protected]$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:develop --follow-tags
when: manual
only:
- develop
- develop@sickrage/sickrage
except:
refs:
- tags
......@@ -140,7 +140,7 @@ release:build:master:
variables:
- $CI_COMMIT_MESSAGE =~ /\[TASK\] Releasing/
release:build:develop:
Build and Deploy Pre-Release:
stage: release_build
image:
name: nikolaik/python-nodejs:python3.7-nodejs10-alpine
......@@ -163,8 +163,9 @@ release:build:develop:
- git tag -a $(cat sickrage/version.txt) -m "Pre-release v$(cat sickrage/version.txt)"
- git commit -m "[TASK] Pre-Releasing v$(cat sickrage/version.txt)"
- git push https://$GIT_ACCESS_USER:[email protected]$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:$CI_COMMIT_REF_NAME --follow-tags
when: manual
only:
- develop
- develop@sickrage/sickrage
except:
refs:
- tags
......@@ -188,7 +189,7 @@ release:sentry:master:
- sentry-cli releases finalize $(cat sickrage/version.txt)
- sentry-cli releases deploys $(cat sickrage/version.txt) new -e master
only:
- /^[0-9.]+$/
- /^[0-9.]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -208,7 +209,7 @@ release:sentry:develop:
- sentry-cli releases finalize $(cat sickrage/version.txt)
- sentry-cli releases deploys $(cat sickrage/version.txt) new -e develop
only:
- /^[0-9.]+dev[0-9]+$/
- /^[0-9.]+dev[0-9]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -222,8 +223,8 @@ deploy:pypi:
- python setup.py sdist bdist_wheel
- twine upload dist/*
only:
- /^[0-9.]+$/
- /^[0-9.]+dev[0-9]+$/
- /^[0-9.]+$/@sickrage/sickrage
- /^[0-9.]+dev[0-9]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -237,7 +238,7 @@ deploy:docker:master:
project: sickrage/sickrage-docker
branch: master
only:
- /^[0-9.]+$/
- /^[0-9.]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -251,7 +252,7 @@ deploy:docker:develop:
project: sickrage/sickrage-docker
branch: master
only:
- /^[0-9.]+dev[0-9]+$/
- /^[0-9.]+dev[0-9]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -265,7 +266,7 @@ deploy:synology:master:
project: sickrage/sickrage-synology
branch: master
only:
- /^[0-9.]+$/
- /^[0-9.]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -281,7 +282,7 @@ deploy:readynas:master:
project: sickrage/sickrage-readynas
branch: master
only:
- /^[0-9.]+$/
- /^[0-9.]+$/@sickrage/sickrage
except:
- branches
- triggers
......@@ -297,7 +298,7 @@ deploy:qnap:master:
project: sickrage/sickrage-qnap
branch: master
only:
- /^[0-9.]+$/
- /^[0-9.]+$/@sickrage/sickrage
except:
- branches
- triggers
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