-
Notifications
You must be signed in to change notification settings - Fork 6
76 lines (76 loc) · 2.66 KB
/
3pushChanges.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 3 Push & Update API
on:
workflow_dispatch:
branches: [main]
workflow_run:
workflows: ["2 Build CGAZ"]
branches: [main]
types:
- completed
jobs:
pushUpdates:
name: Push Updates
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Push Changes
uses: appleboy/[email protected]
with:
command_timeout: 360m
host: ${{ secrets.SCHOST }}
username: ${{ secrets.SCUSERNAME }}
password: ${{ secrets.SCPASSWORD }}
port: 22
proxy_host: ${{ secrets.STATHOST }}
proxy_username: ${{ secrets.SCUSERNAME }}
proxy_password: ${{ secrets.SCPASSWORD }}
proxy_port: 22
script: |
echo "" > /sciclone/geograd/geoBoundaries/logs/gbBuilderCommitCSV/pushJobStat
echo "" > /sciclone/geograd/geoBoundaries/logs/gbBuilderCommitCSV/pushStat
cd /sciclone/geograd/geoBoundaries/scripts/geoBoundaryBot/geoBoundaryBuilder
qsub pushBuild
bash workflow/pushWatch.sh
buildAPI:
name: Build API
needs: pushUpdates
runs-on: ubuntu-latest
steps:
- name: Build API Locally, Push to Git
uses: appleboy/[email protected]
with:
command_timeout: 360m
host: ${{ secrets.SCHOST }}
username: ${{ secrets.SCUSERNAME }}
password: ${{ secrets.SCPASSWORD }}
port: 22
proxy_host: ${{ secrets.STATHOST }}
proxy_username: ${{ secrets.SCUSERNAME }}
proxy_password: ${{ secrets.SCPASSWORD }}
proxy_port: 22
script: |
cd /sciclone/geograd/geoBoundaries/scripts/geoBoundaryBot/geoBoundaryBuilder
echo "" > /sciclone/geograd/geoBoundaries/logs/gbWeb/apiJobStat
echo "" > /sciclone/geograd/geoBoundaries/logs/gbWeb/apiStat
qsub apiBuild
bash workflow/apiWatch.sh
uploadAPI:
name: Upload API
needs: buildAPI
runs-on: ubuntu-latest
steps:
- name: Push API to Website
uses: appleboy/[email protected]
with:
command_timeout: 360m
host: ${{ secrets.SCHOST }}
username: ${{ secrets.SCUSERNAME }}
password: ${{ secrets.SCPASSWORD }}
port: 22
proxy_host: ${{ secrets.STATHOST }}
proxy_username: ${{ secrets.SCUSERNAME }}
proxy_password: ${{ secrets.SCPASSWORD }}
proxy_port: 22
script: |
cd /sciclone/geograd/geoBoundaries/scripts/geoBoundaryBot/geoBoundaryBuilder
expect uploadAPI ${{ secrets.GBUSER }} ${{ secrets.GBPASS }} ${{ secrets.GBSERVER }}