Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/fly-deploy.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prod Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Prod
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- name: Execute remote SSH commands using password
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd /home/deploy/source-be
git checkout main
git pull
./build.sh
sudo /bin/systemctl restart source-be
25 changes: 25 additions & 0 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Staging Deploy
on:
push:
branches:
- dev
jobs:
deploy:
name: Deploy to Staging
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4

- name: Connect to Tailscale
uses: tailscale/github-action@v4
with:
authKey: ${{ secrets.TS_AUTH_KEY }}
tags: tag:ci

- name: Deploy via SSH
run: |
ssh -o StrictHostKeyChecking=no merv@mervstation.tail4f070.ts.net
cd /home/merv/Developer/source-be
git pull
sudo /bin/systemctl restart source-be
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ source-users
dev/dev.clj
.nrepl-port
target/
resources/admins_encrypted.json

.db
admins.json