mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 06:32:00 -03:30
build-docker.sh: Remove docker-* prefix from tags during build (#1769)
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
c770c4190c
commit
83cc630932
@ -19,12 +19,13 @@ build_arch() {
|
||||
local suffix="${5:-$arch}"
|
||||
|
||||
echo -e "\e[1m\n[ Build NCP Docker ${arch} ]\e[0m"
|
||||
version="${version?}"
|
||||
DOCKER_BUILDKIT=1 docker build --pull --progress=plain . -f build/docker/Dockerfile \
|
||||
--target "$target" -t "ownyourbits/$target-${suffix}:latest" \
|
||||
--cache-from "ownyourbits/nextcloudpi-${suffix}" --build-arg "release=$release" --build-arg "arch=${arch}" \
|
||||
--build-arg "arch_qemu=$arch_qemu" --build-arg "ncp_ver=${version?}"
|
||||
--build-arg "arch_qemu=$arch_qemu" --build-arg "ncp_ver=${version#docker-}"
|
||||
|
||||
docker tag "ownyourbits/${target}-${suffix}:latest" "ownyourbits/${target}-${suffix}:${version}"
|
||||
docker tag "ownyourbits/${target}-${suffix}:latest" "ownyourbits/${target}-${suffix}:${version#docker-}"
|
||||
}
|
||||
|
||||
get_arch_args() {
|
||||
|
||||
@ -213,7 +213,7 @@ rm -f /var/log/alternatives.log /var/log/apt/*; \
|
||||
rm /var/cache/debconf/*-old; \
|
||||
|
||||
# set version
|
||||
echo "${ncp_ver}" > /usr/local/etc/ncp-version
|
||||
echo "${ncp_ver#docker-}" > /usr/local/etc/ncp-version
|
||||
|
||||
COPY build/docker/nextcloudpi/000ncp /etc/services-enabled.d/
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user