Skip to content

Commit c75a6ac

Browse files
Skip building docker image when service image is provided (#610)
1 parent 38f1f93 commit c75a6ac

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/integration.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020
required: false
2121
default: "ghcr.io/restatedev/restate:main"
2222
type: string
23+
serviceImage:
24+
description: "service image, if provided it will skip building the image from sdk main branch"
25+
required: false
26+
default: ""
27+
type: string
2328
workflow_call:
2429
inputs:
2530
restateCommit:
@@ -32,6 +37,11 @@ on:
3237
required: false
3338
default: 'ghcr.io/restatedev/restate:main'
3439
type: string
40+
serviceImage:
41+
description: "service image, if provided it will skip building the image from sdk main branch"
42+
required: false
43+
default: ""
44+
type: string
3545
envVars:
3646
required: false
3747
type: string
@@ -101,6 +111,7 @@ jobs:
101111
uses: docker/setup-buildx-action@v3
102112

103113
- name: Build Typescript test-services image
114+
if: ${{ inputs.serviceImage == '' }}
104115
id: build
105116
uses: docker/build-push-action@v6
106117
with:
@@ -116,7 +127,7 @@ jobs:
116127
uses: restatedev/[email protected]
117128
with:
118129
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
119-
serviceContainerImage: "restatedev/typescript-test-services"
130+
serviceContainerImage: ${{ inputs.serviceImage != '' && inputs.serviceImage || 'restatedev/typescript-test-services' }}
120131
exclusionsFile: "packages/restate-e2e-services/exclusions.yaml"
121132
envVars: ${{ inputs.envVars }}
122133
testArtifactOutput: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-typescript-integration-test-report' }}

0 commit comments

Comments
 (0)