I am trying to deploy to aptible with github actions. This is my .yml file
name: Cartwheel Staging CI
run-name: ${{ github.actor }} activated these GitHub Actions
on:
pull_request:
branches: [ staging ]
env:
APTIBLE_ENVIRONMENT: ${{ secrets.APTIBLE_ENVIRONMENT }}
APTIBLE_APP: ${{ secrets.APTIBLE_STAGING_APP }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.APTIBLE_GIT_SSH_KEY }}
- name: Deploy to Aptible
run: |
ssh-keyscan beta.aptible.com >> ~/.ssh/known_hosts
git remote add staging git@beta.aptible.com:${APTIBLE_ENVIRONMENT}/${APTIBLE_STAGING_APP}.git
git push staging ${GITHUB_SHA}:main
I have saved the APTIBLE_GIT_SSH_KEY as described in webfactory/ssh-agent README.
This is the actual error I receive in my github actions:
Run webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ***
env:
APTIBLE_ENVIRONMENT: ***
APTIBLE_APP: ***
Adding GitHub.com keys to /home/runner/.ssh/known_hosts
Starting ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXRcccK6/agent.1720
SSH_AGENT_PID=1721
Adding private key(s) to agent
Error loading key "(stdin)": error in libcrypto
Error: Command failed: ssh-add -
Error loading key "(stdin)": error in libcrypto