Skip to content

Commit

Permalink
Added github action to deploy to prod (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
EncryptEx authored Mar 5, 2024
1 parent 1479b9b commit 36b982b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deployProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy on Production

on:
push:
branches:
- 'master'

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Git pull and rebuild docker
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: ${{ secrets.PRODSCRIPT }}

0 comments on commit 36b982b

Please sign in to comment.