build: Debug

This commit is contained in:
Kroese 2023-11-29 05:03:16 +01:00 committed by GitHub
parent eaa8fae19c
commit bb1e7beb3a

View file

@ -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