Skip to content

Commit c19faf4

Browse files
test: defaults for core
Signed-off-by: Scott Schreckengaust <[email protected]>
1 parent 4a452d4 commit c19faf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-push-container-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: ubuntu-latest
5757
defaults:
5858
run:
59-
working-directory: ${{ inputs.working-directory }}
59+
working-directory: ${{ inputs.working-directory || './src/core-mcp-server' }}
6060
environment: release
6161
# if: (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call')
6262
strategy:
@@ -141,7 +141,7 @@ jobs:
141141
id: meta
142142
uses: docker/metadata-action@v5
143143
with:
144-
images: ${{ inputs.tag }}
144+
images: ${{ inputs.tag || 'awslabs/test-mcp-server' }}
145145
tags: |
146146
type=ref,event=branch
147147
type=ref,event=pr
@@ -152,8 +152,8 @@ jobs:
152152
working-directory: ${{ runner.temp }}/digests
153153
run: |
154154
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
155-
$(printf '${{ inputs.tag }}@sha256:%s ' *)
155+
$(printf '${{ inputs.tag || 'awslabs/test-mcp-server' }}@sha256:%s ' *)
156156
157157
- name: Inspect image
158158
run: |
159-
docker buildx imagetools inspect ${{ inputs.tag }}:${{ steps.meta.outputs.version }}
159+
docker buildx imagetools inspect ${{ inputs.tag || 'awslabs/test-mcp-server' }}:${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)