Skip to content

mojira/deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

Mojira Deploy GitHub Action

GitHub Action for deploying Mojira community bots to the Mojira VPS.

Example workflow

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!

Options

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)

About

GitHub Action for deploying Mojira community bots

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Contributors