Sign inSign up

jderusse/ga-ssh

By jderusse

Updated almost 7 years ago

Image
0

9.5K

jderusse/ga-ssh repository overview

Github Action for SSH

Usage

You can use it as a Github Action like this:

.github/workflows/deploy.yml

on:
  push:
    branches:
    - master
name: Deploy application
jobs:
  Deploy:
    name: Run docker-compose up
    runs-on: ubuntu-latest
    steps:
    - name: Start containers
      uses: jderusse/ga-ssh@master
      with:
        host: host.example.com
        username: user
        key: ${{ secrets.PRIVATE_KEY }}
        script: |
          docker-compose ps
          docker-compose up -d

Docker

A Docker-Image is built automatically and located here: https://hub.docker.com/r/jderusse/ga-ssh

You can run it in any given directory like this:

docker run --rm -it jderusse/ga-ssh:latest

Tag summary

Content type

Image

Digest

Size

4.7 MB

Last updated

almost 7 years ago

docker pull jderusse/ga-ssh