Deploy on prod.td.org.uit.no #36
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 on prod.td.org.uit.no | |
# Ignore error below | |
on: | |
workflow_run: | |
workflows: ["Build and push docker image"] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH into server and launching update script | |
uses: appleboy/ssh-action@master | |
with: | |
host: prod.td.org.uit.no | |
username: ${{ secrets.PROD_SERVER_USERNAME }} | |
password: ${{ secrets.PROD_SERVER_PASSWORD }} | |
script: ./pull-latest-api.sh |