-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (49 loc) · 1.83 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
43
44
45
46
47
48
49
sync-master:
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$GIT_SSH_PRIV_KEY")
- mkdir ~/.ssh
- touch ~/.ssh/known_hosts
- ssh-keygen -R gitlab.com
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git config --global user.password "${GITLAB_USER_PASSWORD}"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- README.md
- /*
script:
- git remote add upstream https://gitlab.com/derpystuff/discord-asset-datamining.git
- git fetch --all
- git switch -c master origin/master
- git merge upstream/master
- git push -o ci-skip [email protected]:tako-discord/discord-asset-datamining.git HEAD:master
sync-organized:
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$GIT_SSH_PRIV_KEY")
- mkdir ~/.ssh
- touch ~/.ssh/known_hosts
- ssh-keygen -R gitlab.com
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git config --global user.password "${GITLAB_USER_PASSWORD}"
rules:
- if: '$CI_COMMIT_BRANCH == "organized"'
changes:
- README.md
- /*
script:
- git remote add upstream https://gitlab.com/derpystuff/discord-asset-datamining.git
- git fetch --all
- git switch -c master origin/organized
- git branch
- git branch
- git merge upstream/organized
- git branch
- git push -o ci-skip [email protected]:tako-discord/discord-asset-datamining.git HEAD:organized