22 lines
896 B
YAML

on:
push:
branches:
- 'main'
jobs:
deploy_to_main:
name: Deploy app to the Multirisque main setup
runs-on: self-hosted
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: SSH Command
uses: D3rHase/ssh-command-action@v0.2.2
with:
host: ${{secrets.HOST}} # Remote server address / ip - required
port: ${{secrets.PORT}} # Remote server port - Default: 22 - optional
user: ${{secrets.USER}} # Remote server user - required
private_key: ${{secrets.PRIVATE_KEY}} # Private ssh key registered on the remote server - required
host_fingerprint: ${{secrets.HOST_FINGERPRINT}} # Public ssh key fingerprint, viewable via ssh-keyscan -H $HOST -p $PORT - optional
command: cd ./docker-data/perso/ && ./updateCV.sh # Command to be executed - Default: echo 'hello world'