https://github.com/setoelkahfi/garust-debian
GitHub Action to run Rust binary on Debian Bulls Eye using SSH rsync.
https://github.com/setoelkahfi/garust-debian
github-actions github-actions-ci rust rust-lang
Last synced: 3 months ago
JSON representation
GitHub Action to run Rust binary on Debian Bulls Eye using SSH rsync.
- Host: GitHub
- URL: https://github.com/setoelkahfi/garust-debian
- Owner: setoelkahfi
- License: mit
- Created: 2023-04-29T20:13:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T09:05:27.000Z (about 1 year ago)
- Last Synced: 2025-03-06T09:11:03.474Z (3 months ago)
- Topics: github-actions, github-actions-ci, rust, rust-lang
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# garust-debian
GitHub Action to running Rust binary on Debian Bulls Eye using SSH `rsync`. Read more on [how to deploy Rust Axum to production](https://medium.com/smbpndk/deploy-rust-axum-binary-with-garust-debian-github-action-f04da853581).
## Supported runner
`ubuntu-20.04`
[What is my Debian in my Ubuntu?](https://askubuntu.com/a/445496/513710).
## Input
```yaml
working-directory:
description: "Working directory for the build."
required: true
binary-name:
description: "Name of the binary to run. Usually the [[bin]] value in the Cargo.toml."
required: true
ssh-user:
description: "SSH user."
required: true
ssh-host:
description: "SSH host."
required: true
ssh-private-key:
description: "SSH private key."
required: true
ssh-known-hosts:
description: "SSH known hosts."
required: true
```## Example
```yaml
name: "Build and release"on:
push:
branches:
- mainjobs:
build-and-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: setoelkahfi/garust-debian@v1
with: Install Rust stable
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
ssh-user: ${{ secrets.SSH_USER }}
ssh-host: ${{ secrets.SSH_HOST }}
project-directory: ${{ secrets.PROJECT_DIRECTORY }}
project-name: ${{ secrets.PROJECT_NAME }}```