33 lines
823 B
YAML
33 lines
823 B
YAML
name: "Deb builder"
|
|
description: "Builds .deb packages"
|
|
author: "Carneiro"
|
|
|
|
inputs:
|
|
host:
|
|
description: "SSH host address."
|
|
default: "${{ secrets.SSH_HOST }}"
|
|
port:
|
|
description: "SSH port number."
|
|
default: ${{ secrets.SSH_PORT }}
|
|
username:
|
|
description: "SSH username."
|
|
default: "${{ secrets.SSH_USERNAME }}"
|
|
key:
|
|
description: "SSH private key"
|
|
default: ${{ secrets.SSH_PRIV_KEY }}
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- uses: appleboy/ssh-action@v1.2.0
|
|
env:
|
|
PKG_NAME: ${{ github.event.repository.name }}
|
|
REPO_NAME: ${{ gitea.repository }}
|
|
with:
|
|
host: ${{ inputs.host }}
|
|
username: ${{ inputs.username }}
|
|
key: ${{ inputs.key }}
|
|
port: ${{ inputs.port }}
|
|
envs: PKG_NAME, REPO_NAME
|
|
script_path: entrypoint.sh
|