Skip to content

Commit

Permalink
created github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent bb885a8 commit a89edf7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-compose-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Image CI

on:
push:
paths:
- 'backend/**'

jobs:
push_to_rigistry:
name: Rerun Docker compose in server
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3

- name: SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name : SSH into digital ocean server
run : ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_IP }} "cd ~ && ./switchr_commands.sh"



0 comments on commit a89edf7

Please sign in to comment.