Skip to content

Commit

Permalink
Fix deploy yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brubluenel committed Sep 6, 2024
1 parent 48f99a3 commit bee2acc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# .github/workflows/deploy.yml
name: Deploy to Vultr

on:
push:
branches:
- main # This triggers the workflow on pushes to the main branch
- main

jobs:
deploy:
Expand All @@ -19,8 +18,8 @@ jobs:
with:
ssh-private-key: ${{ secrets.VULTR_SSH_PRIVATE_KEY }}

- name: Build Docker image
run: docker build -t happiness-backend .
- name: Verify SSH connection
run: ssh -o StrictHostKeyChecking=no root@${{ secrets.VULTR_IP }} "echo 'SSH connection successful'"

- name: Push Docker image to Vultr
run: |
Expand Down

0 comments on commit bee2acc

Please sign in to comment.