Skip to content

marcosanson/mina-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MINA CUSTOM ACTION FOR GITHUB

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

Required 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published