0

I would like to deploy my application with a CI CD pipeline. I used appleboy/ssh-action@master and github actions. I generated an ssh key pair in git bash and I added the the pub file to my profile and the private key to secrets in the repo. The problem is that I don't know the hostname and the port number but I need it to deploy. Can somebody help me? I don't have any experience with this.

This is my github actions yaml file:

name: Deploy application

on:
  push:
    branches: [master]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
     - name: multiple command
       uses: appleboy/ssh-action@master
       with:
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USER }}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: ${{ secrets.SSH_PORT }}
          script: |
            docker system prune -a -f
            cd /mnt/tourmix-main
            git clean -ffdx
            git pull origin master --rebase
            make release
            docker system prune -a -f

0 Answers0