Skip to content

Commit 0f57dc8

Browse files
committed
Fix image-ref of build-server action
1 parent efbf66f commit 0f57dc8

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/actions/build-server/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ inputs:
1818
default: "false"
1919

2020
outputs:
21-
image-digest:
22-
description: The image name + digest of the built image
23-
value: ${{ steps.naming.outputs.image-name }}@${{ steps.build.outputs.digest }}
21+
image-ref:
22+
description: Reference to the locally-runnable image (valid if load="true")
23+
value: ${{ steps.naming.outputs.image-name }}:${{ steps.naming.outputs.local-tag }}
2424

2525
runs:
2626
using: composite
@@ -38,6 +38,7 @@ runs:
3838
profile="${{ inputs.server-profile }}"
3939
echo "profile-title=${profile^}" >> "$GITHUB_OUTPUT"
4040
echo "image-name=eclipsebasyx/basyx-python-${{ inputs.server-profile }}" >> $GITHUB_OUTPUT
41+
echo "local-tag=ci-${{ github.run_id }}" >> $GITHUB_OUTPUT
4142
4243
- name: Extract Docker image metadata
4344
id: meta
@@ -48,7 +49,7 @@ runs:
4849
tags: |
4950
type=semver,pattern={{version}}
5051
type=raw,value=latest,enable=${{ inputs.publish == 'true' && true || false }}
51-
type=sha,prefix=pr-,enable=${{ inputs.load == 'true' && true || false }}
52+
type=raw,value=${{ steps.naming.outputs.local-tag }},enable=${{ inputs.load == 'true' && true || false }}
5253
labels: |
5354
org.opencontainers.image.title=BaSyx Python ${{ steps.naming.outputs.profile-title }} Service
5455
org.opencontainers.image.description=Eclipse BaSyx Python SDK - ${{ steps.naming.outputs.profile-title }} HTTP Server
@@ -64,5 +65,5 @@ runs:
6465
tags: ${{ steps.meta.outputs.tags }}
6566
labels: ${{ steps.meta.outputs.labels }}
6667
platforms: ${{ inputs.platform }}
67-
#push: ${{ inputs.publish == 'true' && true || false }}
68+
push: ${{ inputs.publish == 'true' && true || false }}
6869
load: ${{ inputs.load == 'true' && true || false }}

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ jobs:
357357
platform: linux/amd64
358358
- name: Run container
359359
run: |
360-
docker run -d --name basyx-python-${{ matrix.service }} -p 9080:80 --pull=never ${{ steps.build.outputs.image-digest }}
360+
docker run -d --name basyx-python-${{ matrix.service }} -p 9080:80 --pull=never ${{ steps.build.outputs.image-ref }}
361361
- name: Wait for container and server initialization
362362
run: |
363363
timeout 30s bash -c '

0 commit comments

Comments
 (0)