Merge pull request #208 from HakaiInstitute/207-issue-hakaikcbuoy1hou… #141
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 Production ERDDAP server | |
on: | |
push: | |
branches: | |
- master | |
workflow_run: | |
workflows: [Test datasets.xml and linter] | |
types: | |
- completed | |
jobs: | |
development-update: | |
name: Update ERDDAP | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://catalogue.hakai.org/erddap/ | |
steps: | |
- name: Update production server | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.PROD_SERVER_HOST }} | |
username: ${{ secrets.PROD_SERVER_USERNAME }} | |
passphrase: ${{ secrets.PROD_SERVER_PASSPHRASE }} | |
key: ${{ secrets.PROD_SERVER_SSH_KEY }} | |
script: cd ~/hakai-erddap/; bash update-erddap.sh --hardFlag |