Skip to content

Commit

Permalink
add optional extra-identity
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Nov 13, 2024
1 parent b3ed389 commit a4bb348
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/ocm-oci-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: |
An optional list of OCM Labels to add into OCM Resource fragment.
required: false
ocm_extra_identity:
description: |
Optional extra_identity to add into OCM Resource fragment.
required: false
target:
description: |
docker-build target (similar to `docker build --target`)
Expand Down Expand Up @@ -111,6 +115,12 @@ runs:
if [ -n "${labels}" ]; then
echo -e "labels:\n${labels}" >> $r
fi
extra_identity="${{ inputs.ocm_extra_identity || false}}"
if [ "${extra_identity}" != 'false' ]; then
echo "extraIdentity:" >> $r
# indent extra-identity (assuming it is yaml)
echo "${extra_identity}" | sed 's/^/ /g' >> $r
fi
(
echo 'ocm_resource<<EOF'
Expand Down

0 comments on commit a4bb348

Please sign in to comment.