Add reusable workflow for setting up SSH agent #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |