-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1.gocd.yml
34 lines (34 loc) · 1.13 KB
/
1.gocd.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
environments:
modi_helper_scripts:
environment_variables:
GIT_USER: "{{SECRET:[github][username]}}"
PYPI_USERNAME: "{{SECRET:[modi_helper_scripts][username]}}"
PYPI_PASSWORD: "{{SECRET:[modi_helper_scripts][password]}}"
pipelines:
- modi-helper-scripts
pipelines:
modi-helper-scripts:
group: pypi_package
locking: off
timer:
# Run on the 1st at 00:00 of every month
spec: "0 0 0 1 * ? *"
only_on_changes: no
materials:
modi-helper-scripts_git: # this is the name of material
# says about type of material and url at once
git: https://github.com/ucphhpc/modi-helper-scripts.git
branch: main
destination: modi-helper-scripts
publish_python_git:
git: https://github.com/rasmunk/publish-python-scripts.git
username: ${GIT_USER}
password: "{{SECRET:[github][access_token]}}"
branch: main
destination: publish-python-scripts
parameters:
ARGS: ''
SRC_DIRECTORY: modi-helper-scripts
TEST_DIRECTORY: modi-helper-scripts
PUSH_DIRECTORY: publish-python-scripts
template: pypi_package