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
5 changes: 4 additions & 1 deletion .github/workflows/dev-build-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
goose -dir ./apps/api/internal/db/migrations postgres "${{ secrets.DEV_DB_URL }}" up

deploy:
name: Deploy to Production Server
name: Deploy to Development Server
runs-on: ubuntu-latest
needs: [build-and-push, run-migrations]

Expand All @@ -83,6 +83,9 @@ jobs:
proxy_port: ${{ secrets.SSH_PORT_JUMP }}
script: |
cd /home/admin/core/infra
git fetch
git checkout dev
git reset --hard origin/dev
git pull
infisical export --env=dev --format=dotenv --path="/api" --projectId=${{ secrets.INFISICAL_PROJECT_ID }} > ./secrets/.env.dev.api
docker compose -f docker-compose.dev.yml pull api
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prod-build-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ jobs:
proxy_port: ${{ secrets.SSH_PORT_JUMP }}
script: |
cd /home/admin/core/infra
git fetch
git checkout master
git reset --hard origin/master
git pull
infisical export --env=prod --format=dotenv --path="/api" --projectId=${{ secrets.INFISICAL_PROJECT_ID }} > ./secrets/.env.api
docker compose pull api
Expand Down
2 changes: 1 addition & 1 deletion infra/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
api:
dev-api:
image: ghcr.io/swamphacks/core-api:dev
ports:
- "8081:8080"
Expand Down