diff options
Diffstat (limited to 'hooks/build')
-rwxr-xr-x | hooks/build | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hooks/build b/hooks/build index f0dd249e..b89a5661 100755 --- a/hooks/build +++ b/hooks/build @@ -1,7 +1,8 @@ -#!/bin/bash +#!/usr/bin/env bash echo ">>> Building images..." +# shellcheck source=arches.sh source ./hooks/arches.sh if [[ -z "${SOURCE_COMMIT}" ]]; then @@ -26,7 +27,7 @@ LABELS=( org.opencontainers.image.licenses="AGPL-3.0-only" org.opencontainers.image.revision="${SOURCE_COMMIT}" org.opencontainers.image.source="${SOURCE_REPOSITORY_URL}" - org.opencontainers.image.url="https://hub.docker.com/r/${DOCKER_REPO#*/}" + org.opencontainers.image.url="https://github.com/dani-garcia/vaultwarden" org.opencontainers.image.version="${SOURCE_VERSION}" ) LABEL_ARGS=() @@ -45,6 +46,6 @@ for arch in "${arches[@]}"; do docker build \ "${LABEL_ARGS[@]}" \ -t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \ - -f docker/${arch}/Dockerfile${buildkit_suffix}${distro_suffix} \ + -f "docker/${arch}/Dockerfile${buildkit_suffix}${distro_suffix}" \ . done |