-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.11 KB
/
gadi_deploy.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
name: Update catalog on Gadi
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release version'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
### Latest at time of writing
uses: actions/checkout@v3.3.0
- name: Sync repository to Gadi
### Latest at time of writing
uses: up9cloud/action-rsync@v1.3
env:
HOST: gadi.nci.org.au
TARGET: ${{secrets.GADI_REPO_PATH}}
KEY: ${{secrets.DEPLOY_KEY}}
USER: ${{secrets.GADI_USER}}
- name: Update catalog
uses: appleboy/ssh-action@v0.1.7
with:
host: gadi.nci.org.au
username: ${{secrets.GADI_USER}}
key: ${{secrets.DEPLOY_KEY}}
script: |
cd ${{secrets.GADI_REPO_PATH}}
export RELEASE=${{ github.event.inputs.release_version }}
cd bin
qsub -v version=${RELEASE} build_all.sh
cd ..
git add src/access_nri_intake/cat
git commit "Update catalog to $RELEASE"