build: Add annotations

build: Add annotations
This commit is contained in:
Kroese 2023-11-29 07:52:45 +01:00 committed by GitHub
commit 873e59cdb7

View file

@ -80,17 +80,16 @@ jobs:
LABELS+=("org.opencontainers.image.url=https://hub.docker.com/r/${{ secrets.DOCKERHUB_REPO }}") 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.source=https://github.com/${{ github.repository }}")
set -x
docker buildx build --progress=plain \ docker buildx build --progress=plain \
--platform "${PLATFORMS}" \ --platform "${PLATFORMS}" \
--output "type=image,push=false" \ --output "type=image,push=true" \
--build-arg "VERSION_ARG=${VERSION}" \ --build-arg "VERSION_ARG=${VERSION}" \
--build-arg "VCS_REF=${GITHUB_SHA::8}" \ --build-arg "VCS_REF=${GITHUB_SHA::8}" \
$(printf '%s' "${LABELS[@]/#/ --label }" ) \ $(printf '%s' "${LABELS[@]/#/ --label }" ) \
$(printf '%s' "${LABELS[@]/#/ --annotation }" ) \
$(printf '%s' "${TAGS[@]/#/ --tag }" ) "${DIRECTORY}" $(printf '%s' "${TAGS[@]/#/ --tag }" ) "${DIRECTORY}"
rm -f ${HOME}/.docker/config.json rm -f ${HOME}/.docker/config.json
jdksks #$(printf '%s' "${LABELS[@]/#/ --label }" ) \
- -
name: Create a release name: Create a release
uses: action-pack/github-release@v2 uses: action-pack/github-release@v2