Skip to content
box

GitHub Action

GitHub Action Rust-on-Debian

v1.1.2 Latest version

GitHub Action Rust-on-Debian

box

GitHub Action Rust-on-Debian

GitHub Action to running Rust binary on Debian Bulls Eye

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Action Rust-on-Debian

uses: setoelkahfi/[email protected]

Learn more about this action in setoelkahfi/garust-debian

Choose a version

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.

Supported runner

ubuntu-20.04

What is my Debian in my Ubuntu?.

Input

  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

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 }}