Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ujwaldhakal/b0d333df8cbcc98950f2c7213ee46803 to your computer and use it in GitHub Desktop.
Save ujwaldhakal/b0d333df8cbcc98950f2c7213ee46803 to your computer and use it in GitHub Desktop.
Hubot deployer workflow file
name: deploy
on:
repository_dispatch:
types: [deploy-service]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: sh deploy-app.sh {{ github.event.client_payload.environment }} {{ github.event.client_payload.branch }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment