Skip to content

Commit

Permalink
Add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
srosset81 committed Jan 29, 2025
1 parent 8984b24 commit c8b0460
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy shapes.activitypods.org

on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Wait for publish workflow to be completed
uses: kamilchodola/wait-for-workflow-action@1.1.0
with:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_TOKEN }}
workflow_id: "publish.yml"
org_name: "activitypods"
repo_name: "shapes"

- name: Executing remote SSH command
uses: appleboy/ssh-action@v1.0.3
with:
host: shapes.activitypods.org
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd apps
docker system prune --force
docker compose build shapes
docker compose up -d shapes

0 comments on commit c8b0460

Please sign in to comment.