-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.72 KB
/
main.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
50
51
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: DA CI
on:
push:
branches: [ develop ]
schedule:
- cron: '0 7,19 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
mv:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x and install dependencies
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: update repo
run: git rebase https://github.com/Chocobozzz/PeerTube.git
- name: Install dependencies
run: |
sudo apt-get install curl unzip vim
sudo apt update
sudo apt install nginx ffmpeg openssl g++ make git python-dev
ffmpeg -version
g++ -v
- name: set name server
run: |
sudo cat /etc/resolv.conf
echo "@@@@@@@@@@@@@@@ \n @@@@@@@@@@@@@"
sudo sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
sudo sh -c "echo 'nameserver 8.8.4.4' >> /etc/resolv.conf"
sudo sh -c "echo 'options edns0 trust-ad' >> /etc/resolv.conf"
sudo sh -c "echo 'search l4pwberga4fehcq032xpip23ka.cx.internal.cloudapp.net' >> /etc/resolv.conf"
sudo cat /etc/resolv.conf
- name: build peertube
run: |
NOCLIENT=1 yarn install --pure-lockfile
npm run setup:cli
- name: upload
run: |
node dist/server/tools/peertube-import-videos.js -u '${{ secrets.URL }}' -U '${{ secrets.USER }}' --password '${{ secrets.PASSWORD }}' --target-url '${{ secrets.TARGET_DA }}'