Skip to content

Commit fd7d774

Browse files
committed
yaml
Signed-off-by: Roland Asmann <[email protected]>
1 parent d5d6d1c commit fd7d774

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/actions/build-docker-image/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ inputs:
1313
description: Labels to add to the image
1414
language:
1515
description: The language and version that is included in this image
16-
required: true
1716
output:
1817
description: Controls what should be done with the image(s) after building
1918
required: true
@@ -37,7 +36,7 @@ runs:
3736
LANGUAGE=${{ inputs.language }}
3837
TAG=${{ inputs.tags[0] }}
3938
VERSION=${{ github.ref_name }}
40-
${{ fromJSON(inputs.docker-args) || '' }}
39+
${{ fromJSON(inputs.docker-args) }}
4140
context: .
4241
file: ${{ inputs.dockerfile }}
4342
labels: ${{ inputs.labels }}

.github/workflows/image-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
build-arm: ${{ ! fromJSON(inputs.image).skip-arm }}
9090
dockerfile: ci/images/${{ fromJSON(inputs.image).distro }}/Dockerfile.${{ fromJSON(inputs.image).lang }}
91-
docker-args: ${{ steps.nexus.outputs.docker-args }}
91+
docker-args: ${{ steps.nexus.outputs.docker-args || '' }}
9292
images: |
9393
${{ env.REPO }}/${{ env.TEAM }}/${{ fromJSON(inputs.image).base-image.name || fromJSON(inputs.image).distro || 'bci' }}-${{ fromJSON(inputs.image).base-image.lang || fromJSON(inputs.image).lang }}
9494
${{ fromJSON(inputs.image).base-image.additional-image && format('{0}/{1}/{2}', env.REPO, env.TEAM, fromJSON(inputs.image).base-image.additional-image) || '' }}
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
build-arm: ${{ ! fromJSON(inputs.image).skip-arm }}
105105
dockerfile: ci/images/${{ fromJSON(inputs.image).distro }}/Dockerfile.${{ fromJSON(inputs.image).lang }}
106-
docker-args: ${{ steps.nexus.outputs.docker-args }}
106+
docker-args: ${{ steps.nexus.outputs.docker-args || '' }}
107107
images: |
108108
${{ env.REPO }}/${{ env.TEAM }}/cdxgen${{ fromJSON(inputs.image).distro && format('-{0}', fromJSON(inputs.image).distro) }}-${{ fromJSON(inputs.image).lang }}
109109
${{ fromJSON(inputs.image).cdxgen-image.additional-image && format('{0}/{1}/{2}', env.REPO, env.TEAM, fromJSON(inputs.image).cdxgen-image.additional-image) || '' }}
@@ -125,7 +125,7 @@ jobs:
125125
with:
126126
build-arm: ${{ ! fromJSON(inputs.image).skip-arm }}
127127
dockerfile: ci/images/${{ fromJSON(inputs.image).distro }}/Dockerfile.${{ fromJSON(inputs.image).lang }}
128-
docker-args: ${{ steps.nexus.outputs.docker-args }}
128+
docker-args: ${{ steps.nexus.outputs.docker-args || '' }}
129129
images: |
130130
${{ env.REPO }}/${{ env.TEAM }}/cdxgen${{ fromJSON(inputs.image).distro && format('-{0}', fromJSON(inputs.image).distro) }}-${{ fromJSON(inputs.image).lang }}
131131
${{ fromJSON(inputs.image).cdxgen-image.additional-image && format('{0}/{1}/{2}', env.REPO, env.TEAM, fromJSON(inputs.image).cdxgen-image.additional-image) || '' }}

0 commit comments

Comments
 (0)