Skip to content

Commit a9fe0d6

Browse files
committed
build docker from sidecar repo
1 parent 8eb53b5 commit a9fe0d6

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build-validation.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,21 @@ jobs:
4444
- name: Build with Gradle
4545
run: ./gradlew build
4646

47-
# TODO: Move the sidecar into a central image repository
48-
- name: Initialize Durable Task Sidecar
49-
run: docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' -d kaibocai/durabletask-sidecar:latest start --backend Emulator
47+
- name: Checkout DurableTask Sidecar Repository
48+
uses: actions/checkout@v4
49+
with:
50+
repository: microsoft/durabletask-sidecar
51+
path: durabletask-sidecar
52+
53+
- name: Build DurableTask Sidecar Docker Image
54+
run: |
55+
docker build -t durabletask-sidecar:latest ./durabletask-sidecar
56+
57+
- name: Run DurableTask Sidecar Container
58+
run: |
59+
docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' -d durabletask-sidecar:latest start --backend Emulator
5060
51-
# wait for 10 seconds, so sidecar container can be fully up, this will avoid intermittent failing issues for integration tests causing by failed to connect to sidecar
61+
# wait for 10 seconds, so sidecar container can be fully up, this will avoid intermittent failing issues for integration tests causing by failed to connect to sidecar
5262
- name: Wait for 10 seconds
5363
run: sleep 10
5464

0 commit comments

Comments
 (0)