Skip to content

Commit

Permalink
show logs in ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrach-tayo committed Dec 16, 2024
1 parent 419d675 commit 5995536
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-sync-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Show github ref
run: |
echo ${{ github.ref }}
- name: Build & Deploy Worker (Dev)
if: github.ref == 'refs/heads/tay/automerge-party-flagged'
uses: cloudflare/wrangler-action@v3
Expand All @@ -22,6 +25,7 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: staging
workingDirectory: sync-server
wranglerVersion: 3.95.0
- name: Build & Deploy Worker (Staging)
if: github.ref == 'refs/heads/develop'
uses: cloudflare/wrangler-action@v3
Expand All @@ -30,6 +34,7 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: staging
workingDirectory: sync-server
wranglerVersion: 3.95.0
- name: Build & Deploy Worker (Production)
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
Expand All @@ -38,3 +43,4 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: production
workingDirectory: sync-server
wranglerVersion: 3.95.0
6 changes: 3 additions & 3 deletions sync-server/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ head_sampling_rate = 1 # optional. default = 1.
[[hyperdrive]]
binding = "NODES_DB"
id = "856af129675e4140accc0ccabbc2ee20"
localConnectionString = "postgresql://walter:white@host.docker.internal:5434/boilerplate"
localConnectionString = "postgresql://walter:white@host.docker.internal:5433/boilerplate"

[vars]
DB_TABLE= "DocumentStore"
NODES_API= "http://localhost:5420"
ENVIRONMENT="dev"
DATABASE_URL= "postgresql://walter:white@host.docker.internal:5434/boilerplate"
DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate"

[env.dev]
durable_objects.bindings = [{ name = "Automerge", class_name = "AutomergeServer" }]
vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5434/boilerplate" }
vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate" }
hyperdrive = [{ binding = "NODES_DB", id = "856af129675e4140accc0ccabbc2ee20" }]

[env.staging]
Expand Down

0 comments on commit 5995536

Please sign in to comment.