Skip to content
arrow-right-circle

GitHub Action

Action for Mina Deploy

v0.3 Pre-release

Action for Mina Deploy

arrow-right-circle

Action for Mina Deploy

Deploy Ruby using mina

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Action for Mina Deploy

uses: pauarge/[email protected]

Learn more about this action in pauarge/mina-action

Choose a version

Mina deploy for GitHub Actions

This action permits to use mina to deploy your application on your vps. It's is based on ruby:2.5.0 docker image. If you want to run with another version of ruby, you can change the Dockerfile and use your forked version.

Inputs

ssh_private_key

Required This is the private ssh key that can access server. Save it to github secrets!

command

Required Mina command to run. 'deploy' for 'mina deploy'.

environment

This is environment to deploy. If not provided it runs 'mina deploy' command.

Example usage

  - name: Mina deploy
    id: mina-deploy
    uses: marcosanson/mina-action@v1
    with:
      command: 'deploy'
      ssh_private_key: ${{ secrets.SSHPRIVATEKEY }}

Notes

secrets.SSHPRIVATEKEY:

Create a ssh key that can access server with user you specified in mina config file. Save it to github secrets. You can use this command to generate it: ssh-keygen -t rsa -b 4096 -C

IMPORTANT:

Add the following line to your mina configuration file:

  set :ssh_options, '-o StrictHostKeyChecking=no'

CREDITS:

Mina deploy