feat: support multiple destinations
This commit is contained in:
parent
dffa17475a
commit
b0857dcff7
1 changed files with 8 additions and 1 deletions
|
@ -38,4 +38,11 @@ runs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/kaniko/executor --dockerfile Dockerfile --context $GITHUB_WORKSPACE --destination "${{ inputs.image }}"
|
dest_flags=""
|
||||||
|
for dest in $(echo "${{ inputs.image }}" | tr ',' ' '); do
|
||||||
|
dest_flags="$dest_flags --destination=$dest"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Destinations: $dest_flags"
|
||||||
|
|
||||||
|
/kaniko/executor --dockerfile Dockerfile --context $GITHUB_WORKSPACE $dest_flags
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue