Merge pull request #63 from coecms/install_kaleido #60
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: Deploy conda env | |
on: | |
push: | |
branches: main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
### Latest at time of writing | |
uses: actions/[email protected] | |
- name: Sync repository to Gadi | |
### Latest at time of writing | |
uses: up9cloud/[email protected] | |
env: | |
HOST: gadi.nci.org.au | |
TARGET: ${{secrets.GADI_REPO_PATH}} | |
KEY: ${{secrets.DEPLOY_KEY}} | |
USER: ${{secrets.GADI_USER}} | |
- name: Deploy conda environment | |
uses: appleboy/[email protected] | |
with: | |
host: gadi.nci.org.au | |
username: ${{secrets.GADI_USER}} | |
key: ${{secrets.DEPLOY_KEY}} | |
script: | | |
export SCRIPT_DIR=${{secrets.GADI_REPO_PATH}}/scripts | |
eval $( grep ADMIN_DIR $SCRIPT_DIR/install_config.sh ) | |
eval $( grep BUILD_STAGE_DIR $SCRIPT_DIR/install_config.sh ) | |
"${SCRIPT_DIR}"/deploy.sh |