Update catalog on Gadi #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4.1.7 | |
#- name: Sync repository to Gadi | |
# ### Latest at time of writing | |
# uses: up9cloud/action-rsync@v1.4 | |
# 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@v1.0.0 | |
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 | |