Skip to content

Commit 98ebe06

Browse files
authored
github-bot: clone nodejs/node repository (#531)
These changes clones the nodejs/node repository required for the bot to automatically attempt backport of new PRs. Refs nodejs/github-bot#90 PR-URL: #531 Reviewed-By: Johan Bergström <[email protected]>
1 parent 087fa3d commit 98ebe06

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

setup/github-bot/ansible-playbook.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@
102102
- name: GitHub Deploy Webhook | Allow user to restart github-bot
103103
lineinfile: "dest=/etc/sudoers state=present regexp='^{{ server_user }}' line='{{ server_user }} ALL=(ALL) NOPASSWD: /bin/systemctl restart github-bot'"
104104
tags: deploy-webhook
105+
106+
- name: Runtime dependencies | Clone node repo
107+
become: yes
108+
become_user: "{{ server_user }}"
109+
git: repo=https://github.com/nodejs/node.git dest="/home/{{ server_user }}/repos/node"
110+
tags: runtime-dependencies

setup/github-bot/ansible-vars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ required_dirs:
88
- config
99
- environment
1010
- logs
11-
11+
- repos

setup/github-bot/resources/environment-file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ TRAVIS_TOKEN={{envs.travis_token}}
44
GITHUB_TOKEN={{envs.github_token}}
55
GITHUB_WEBHOOK_SECRET={{envs.github_webhook_secret}}
66
LOGIN_CREDENTIALS={{envs.login_credentials}}
7+
NODE_REPO_DIR=/home/{{server_user}}/repos/node

0 commit comments

Comments
 (0)