uitk23009 / drone-mina

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drone-mina

Inspired by drone-capistrano

Usage

  1. Generate SSH key for deploy
  2. Put public SSH key to the server that you want to deploy
  3. Set drone secret mina_private_key with private SSH key
drone secret add \
  --name mina_private_key \
  --value @$HOME/.ssh/deploy_rsa \
  --image uitk23009/drone-mina
  --repository octocat/hello-world

  1. Set drone task

This plugin would install mina-multi_server and mina-multistage so you can use command mina production deploy and set :servers, ['server-1.example.com', 'server-2.example.com'] like capistrano

pipeline:
  deploy:
    image: uitk23009/drone-mina
    pull: true
    repo: octocat/hello-world
    mina_cmd:
        - mina production setup
        - mina production deploy
        - mina production deploy:force_unlock
    secrets: [ mina_private_key ]
    when:
      branch: master

About

License:MIT License


Languages

Language:Shell 67.3%Language:Dockerfile 21.4%Language:Ruby 11.2%