Skip to content

Commit

Permalink
feat(cd): deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyoslav committed Jun 25, 2024
1 parent f53f8f0 commit 9670f16
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy
on:
workflow_run:
workflows: [ 'Pull' ]
types: [ completed ]
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Update and restart docker containers with ssh
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: make -C ${{ vars.PROJECT_DIR }} update
2 changes: 1 addition & 1 deletion .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull the git repository on the server
name: Pull
on:
push:
branches:
Expand Down

0 comments on commit 9670f16

Please sign in to comment.