Skip to content

Commit

Permalink
Add workflow for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jahn18 committed Apr 5, 2024
1 parent be6d02d commit f623214
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deployment

on:
push:
branches:
- main
- deployment
pull_request:
workflow_dispatch:

jobs:
deploy-web:
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v4
- name: Update docker image
uses: appleboy/[email protected]
with:
# host: ${{ secrets.SSH_HOST }}
host: 64.23.224.81
# username: ${{ secrets.SSH_USERNAME }}
username: root
key: ${{ secrets.SSH_KEY }}
script: |
cd sailbot_workspace
docker compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.website.yml up --force-recreate -d

0 comments on commit f623214

Please sign in to comment.