-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (39 loc) · 1.24 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
include:
- project: flywheel-io/scientific-solutions/etc/sse-qa-ci
ref: df5470b6ebe5ddf6448365affcfda06cc0bba92b
file: ci/default.yml
variables:
PYVER: "3.8"
PYTEST_COV_FAIL_UNDER: 0 # Set pytest coverage to 0
DEBUG: "" # Set debug mode to print out executed command on qa-ci
PUBLISH_POETRY: "false" # Set to true to allow CI to publish package to PYPI
CACHE_CLEAR: "1" # Set to true to clear runner cache on gitlab CI
publish:docker:
rules:
- if: $CI_COMMIT_SHA
when: never
publish:template:
stage: publish
image:
name: alpine/git:latest
entrypoint: [""]
rules:
- if: $UPDATE
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
PROJ_PATH: "flywheel-io/scientific-solutions/gears/templates/skeleton.git"
script:
- cd $CI_PROJECT_DIR
- rm -rf .git
- git init
- git config user.email "$CI_PUSH_USER_EMAIL"
- git config user.name "$CI_PUSH_USER_NAME"
# yamllint disable-line rule:line-length
- git remote add template https://$CI_PUSH_USER_NAME:$CI_PUSH_TOKEN@gitlab.com/$PROJ_PATH
- git checkout -b main
- rm -rf helm
- sed -i -e '12,$d' .gitlab-ci.yml
- git add -A
- git commit -m "Initial Commit"
- git push -f template main