CI: SHA-Kürzung POSIX-sicher
Die Job-Shell ist sh -e; ${GITHUB_SHA:0:7} ist bash-Expansion und bricht
mit Bad substitution. printf '%.7s' statt Slice.
This commit is contained in:
@@ -89,7 +89,8 @@ jobs:
|
||||
- name: Build and push
|
||||
run: |
|
||||
# Nur linux/amd64: einziger Konsument ist der LXC auf x86.
|
||||
SHA_TAG="git.42i.org/spine/llmrouter:sha-${GITHUB_SHA:0:7}"
|
||||
# POSIX, kein bash-Slice: die Job-Shell ist sh -e.
|
||||
SHA_TAG="git.42i.org/spine/llmrouter:sha-$(printf '%.7s' "$GITHUB_SHA")"
|
||||
docker buildx build \
|
||||
--builder "${BUILDER}" \
|
||||
--platform linux/amd64 \
|
||||
|
||||
Reference in New Issue
Block a user