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
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
Content type
Image
Digest
Size
4.7 MB
Last updated
almost 7 years ago
docker pull jderusse/ga-ssh