Skip to content

Add reusable workflow for setting up SSH agent #12

Add reusable workflow for setting up SSH agent

Add reusable workflow for setting up SSH agent #12

Workflow file for this run

name: Deploy (Staging)
on:
workflow_dispatch: {}
push:
branches:
- helma-🐜
env:
SSH_AUTH_SOCK: /tmp/ssh-agent.sock
jobs:
stage:
runs-on: ubuntu-latest
environment:
name: stage
url: https://antville-test.click
steps:
- uses: actions/checkout@v4
- name: Set up SSH agent
uses: ./.github/actions/ssh.yml
with:
config: ${{ vars.SSH_CONFIG }}
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Test
run: ssh antville.dev ping