Skip to content

Merge pull request #2 from ismail-kharrobi/DEV-TEST #2

Merge pull request #2 from ismail-kharrobi/DEV-TEST

Merge pull request #2 from ismail-kharrobi/DEV-TEST #2

Workflow file for this run

name: Deploy on server
on:
push:
branches:
- main
jobs:
staging_deploy:
runs-on : ubuntu-latest
environment:
name: Staging
url: http://142.93.161.63
steps:
- name: executing remote ssh commands using ssh key On satging
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.PRIVATE_KEY }}
script: '/root/execute.sh'
production_deploy:
runs-on : ubuntu-latest
needs: staging_deploy
environment:
name: Production
url: http://164.92.243.105
steps:
- name: executing remote ssh commands using ssh key on production
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.PRIVATE_KEY }}
script: '/root/execute.sh'