From bb1e7beb3a5576080c6aebd01b571ba2ca2eae57 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 29 Nov 2023 05:03:16 +0100 Subject: [PATCH] build: Debug --- .github/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1f4e9e..917f619 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,14 +71,14 @@ jobs: TAGS+=("ghcr.io/${{ github.repository }}:${VERSION}") LABELS=() - LABELS=("org.opencontainers.image.licenses=\"MIT\"") - LABELS+=("org.opencontainers.image.title=${TITLE//\'/}") - LABELS+=("org.opencontainers.image.description=${DESC//\'/}") - LABELS+=("org.opencontainers.image.version=\"${VERSION}\"") - LABELS+=("org.opencontainers.image.created=\"${BUILD_DATE}\"") - LABELS+=("org.opencontainers.image.revision=\"${GITHUB_RUN_ID}\"") - LABELS+=("org.opencontainers.image.url=\"https://hub.docker.com/r/${{ secrets.DOCKERHUB_REPO }}/\"") - LABELS+=("org.opencontainers.image.source=\"https://github.com/${{ github.repository }}/\"") + LABELS=("'org.opencontainers.image.licenses=\"MIT\"'") + LABELS+=("'org.opencontainers.image.title=${TITLE//\'/}'") + LABELS+=("'org.opencontainers.image.description=${DESC//\'/}'") + LABELS+=("'org.opencontainers.image.version=\"${VERSION}\"'") + LABELS+=("'org.opencontainers.image.created=\"${BUILD_DATE}\"'") + LABELS+=("'org.opencontainers.image.revision=\"${GITHUB_RUN_ID}\"'") + LABELS+=("'org.opencontainers.image.url=\"https://hub.docker.com/r/${{ secrets.DOCKERHUB_REPO }}/\"'") + LABELS+=("'org.opencontainers.image.source=\"https://github.com/${{ github.repository }}/\"'") set -x docker buildx build --progress=plain \ @@ -86,8 +86,8 @@ jobs: --output "type=image,push=false" \ --build-arg "VERSION_ARG=${VERSION}" \ --build-arg "VCS_REF=${GITHUB_SHA::8}" \ - "$(printf "%s" "${LABELS[@]/#/ --label }" )" \ - "$(printf "%s" "${TAGS[@]/#/ --tag }" )" "${DIRECTORY}" + "$(printf "%q" "${LABELS[@]/#/ --label }" )" \ + "$(printf "%q" "${TAGS[@]/#/ --tag }" )" "${DIRECTORY}" rm -f ${HOME}/.docker/config.json jdksks