GitHub Action to running Rust binary on Debian Bulls Eye using SSH rsync
. Read more on how to deploy Rust Axum to production.
ubuntu-20.04
What is my Debian in my Ubuntu?.
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
name: "Build and release"
on:
push:
branches:
- main
jobs:
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 }}