Skip to content

Commit

Permalink
Merge pull request #140 from ACCESS-NRI/automated_deployment
Browse files Browse the repository at this point in the history
Draft action for automated update of the catalog on Gadi
  • Loading branch information
rbeucher authored Nov 30, 2023
2 parents d987159 + e65c8ee commit c373b60
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/gadi_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"

0 comments on commit c373b60

Please sign in to comment.