Skip to content

Commit

Permalink
allow setting the PowerSync image tag for docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nurturenature committed Sep 22, 2024
1 parent af68dbe commit dea463c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/run-jepsen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ on:
type: string
required: false
default: --nodes n1,n2,n3,n4,n5 --postgres-nodes n1
powersync-image-tag:
description: PowerSync Image Tag
type: string
required: false
default: latest

workflow_call:
inputs:
Expand Down Expand Up @@ -66,6 +71,11 @@ on:
type: string
required: false
default: --nodes n1,n2,n3,n4,n5 --postgres-nodes n1
powersync-image-tag:
description: PowerSync Image Tag
type: string
required: false
default: latest

jobs:
tests:
Expand All @@ -82,6 +92,7 @@ jobs:

env:
test-title: ${{ matrix.workload }}-${{ matrix.backend-connector }}-${{ matrix.nemesis }}-${{ matrix.rate }}tps-${{ matrix.time-limit }}s
POWERSYNC_IMAGE_TAG: ${{ inputs.powersync-image-tag }}

steps:
- name: Checkout jepsen-powersync
Expand Down
2 changes: 1 addition & 1 deletion docker/powersync-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
depends_on:
- mongo
- pg-db
image: journeyapps/powersync-service:latest
image: journeyapps/powersync-service:${POWERSYNC_IMAGE_TAG:-latest}
# The unified service runs an API server and replication worker in the same container.
# These services can be executed in different containers by using individual entry commands e.g.
# Start only the API server with
Expand Down

0 comments on commit dea463c

Please sign in to comment.