Hello,
I created a custom app for ERPNext application. I created a github repository for the custom app. Now I want to deploy my custom changes to server from repository.
I can pull the updates from server. Now I want to add workflow from github.
I am new in Github CI/CD actions. I created workflow and yaml file to deploy server. But It shows error. Here is my yaml code:
name: Deploy to Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy to Server
run: |
ssh erpnext@158.178.235.197 "cd /home/erpnext/frappe-bench/apps/custom_app && git pull upstream main"
It shows this error: Host key verification failed.
If anyone here expert in github CI/CD, please help me to automate this simple action.