Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploytest #2

Closed
wants to merge 17 commits into from
Next Next commit
testing deploy
  • Loading branch information
elliottminns committed Nov 11, 2024
commit 1e4b4d21c509091e70781b24285096613de9f6e9
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy to Server

on:
push:
branches:
- deploytest

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}

- name: Deploy code via SSH
run: |
ssh deploytest@zenful.cloud "cd /home/elliott/guestbook && docker compose up -d"
Loading