https://github.com/sourceboat/deploy
Docker image to run remote commands via SSH.
https://github.com/sourceboat/deploy
deployment docker hacktoberfest ssh
Last synced: 10 days ago
JSON representation
Docker image to run remote commands via SSH.
- Host: GitHub
- URL: https://github.com/sourceboat/deploy
- Owner: sourceboat
- License: mit
- Created: 2018-12-02T14:00:42.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-07-23T16:21:24.000Z (12 months ago)
- Last Synced: 2025-04-28T16:49:36.215Z (2 months ago)
- Topics: deployment, docker, hacktoberfest, ssh
- Language: Shell
- Homepage: https://hub.docker.com/r/sourceboat/deploy/
- Size: 70.3 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sourceboat/deploy
[](https://hub.docker.com/r/sourceboat/deploy/builds/)
[](https://github.com/sourceboat/deploy/releases)
[](https://hub.docker.com/r/sourceboat/deploy/)
[](https://microbadger.com/images/sourceboat/deploy)
[](https://microbadger.com/images/sourceboat/deploy)Docker image to run remote commands via SSH.
## Usage
### Known hosts
To add your host to the known hosts of the SSH agent, simply add the content to the environment variable `$SSH_KNOWN_HOSTS`.
To get the the public key for your host, you can use `ssh-keyscan````
$ ssh-keyscan -p
```Put the output of the command into the `$SSH_KNOWN_HOSTS` environment variable.
### SSH Private Key
To add your SSH private key, add the content of your private key to the environment variable `$SSH_PRIVATE_KEY`.
### Example
To use this image via GitLab CI add the following to the `.gitlab-ci.yml`:
```yaml
deploy:
stage: deploy
image: sourceboat/deploy:latest
script:
- ssh $HOST
```Make sure, the environment variable `$SSH_KNOWN_HOSTS` and/or `$SSH_PRIVATE_KEY` are set in your project settings.
## Changelog
Check [releases](https://github.com/sourceboat/deploy/releases) for all notable changes.
## Credits
- [Phil-Bastian Berndt](https://github.com/pehbehbeh)
- [All Contributors](https://github.com/sourceboat/deploy/graphs/contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.