improve login and builder cleanup
This commit is contained in:
parent
b1a1c06d2b
commit
7c7d5df177
1 changed files with 4 additions and 2 deletions
6
build.sh
6
build.sh
|
|
@ -18,10 +18,9 @@ function build() {
|
||||||
--build-arg PHP_VERSION=${PHP_VERSION} \
|
--build-arg PHP_VERSION=${PHP_VERSION} \
|
||||||
$3 \
|
$3 \
|
||||||
"$SCRIPT_DIR"
|
"$SCRIPT_DIR"
|
||||||
# docker push "git.paucapo.com/server/${PACKAGE}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
docker login "http://git.paucapo.com/"
|
docker login --username paucapo "http://git.paucapo.com/"
|
||||||
|
|
||||||
docker buildx create --use --platform=linux/arm64/v8,linux/amd64 --name multi-platform-builder
|
docker buildx create --use --platform=linux/arm64/v8,linux/amd64 --name multi-platform-builder
|
||||||
docker buildx inspect --bootstrap
|
docker buildx inspect --bootstrap
|
||||||
|
|
@ -34,4 +33,7 @@ for PHP_VERSION in ${WKHTML}; do
|
||||||
build "${PHP_VERSION}-wkhtml" "${PHP_VERSION}" "--build-arg WKHTML=1"
|
build "${PHP_VERSION}-wkhtml" "${PHP_VERSION}" "--build-arg WKHTML=1"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
docker buildx rm multi-platform-builder --force
|
||||||
docker image prune -a --force
|
docker image prune -a --force
|
||||||
|
|
||||||
|
docker logout "http://git.paucapo.com/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue