Created
June 13, 2021 16:13
-
-
Save ujwaldhakal/b0d333df8cbcc98950f2c7213ee46803 to your computer and use it in GitHub Desktop.
Hubot deployer workflow file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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