Giter Site home page Giter Site logo

docker-compose-remote-action's Introduction

Docker Compose Remote Action

This actions deploys your docker-compose stack file to remote host where docker-compose does not even have to be installed.

Inputs

project_name

Project name of the compose project

ssh_host

Remote host where docker is running

known_host_key

Remote host key information for known_hosts file Example: "170.64.163.217 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAABIKvgeZ/twOBTN2B2MY/f931XhbW0p0zXjBZgL+R1IW7D"

ssh_port

SSH port on remote host

ssh_user

SSH user on remote host

ssh_key

SSH private key used to access to remote server. Better save it into repository secrets.

compose_file

Optional. Docker compose filename. Default: docker-compose.yml

service

Optional. Name of service to be deployed. By default all services are deployed.

force_recreate

Optional. Recreate containers even if compose file did not change. Default: false

pull

Optional. Pull docker images before deploying. Default: false

build

Optional. Build docker images before deploying. Default: false

options

Optional. Pass additional options to docker-compose. For example: --no-deps

Example usage

steps:
  # need checkout before using docker-compose-remote-action
  - uses: actions/checkout@v2
  - uses: chaplyk/[email protected]
    with:
      project_name: projectX
      ssh_host: 127.0.0.1
      known_host_key: ${{ secrets.KNOWN_HOST_KEY }}
      ssh_user: username
      ssh_key: ${{ secrets.SSH_KEY }}
      pull: true
      build: true

docker-compose-remote-action's People

Contributors

chaplyk avatar dnfdsbcbsvbcsbcu avatar glesage avatar gvuyk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.