GitHub Action for deploying Mojira community bots to the Mojira VPS.
name: Build and deploy
jobs:
build:
steps:
- name: Build
# ...
- name: Deploy
uses: mojira/deploy@main
with:
vps_host: ${{ secrets.VPS_HOST }}
vps_ssh_key: ${{ secrets.VPS_SSH_KEY }}
vps_known_hosts: ${{ secrets.VPS_KNOWN_HOSTS }}
project_folder: example-app
artifact_paths: |
build/lib/
build/bin/
config.yml
script: |
./start.sh
echo Successfully deployed!All options without a default are required.
-
vps_host - string - The VPS host's IP address or domain name.
-
vps_user - string - User name for authentication. Default:
mojira -
vps_ssh_key - string - Private SSH key to use for connecting.
-
vps_known_hosts - string - Known Hosts file to use for connecting with SSH.
-
project_folder - string - The folder for this project on the VPS.
-
artifact_paths - string - Paths to artifacts (folders or files) to upload. String with exactly one path per line, and an empty line at the end. Folders must have a trailing
/. Default: (empty) -
rsync_args - string - Arguments for uploading artifacts via rsync. Default:
-avhW --delete -
script - string - Script to run after uploading of artifacts. Default: (empty)