Switch to self-hosted container registry.

This commit is contained in:
Dan Helfman 2022-08-01 23:20:45 -07:00
parent 4c94e5ecd1
commit d98198d71d

10
push.sh
View File

@ -2,11 +2,11 @@
set -eux pipefail
IMAGE=witten/wake-on-lan-service
REGISTRY=projects.torsion.org
IMAGE=$REGISTRY/witten/wake-on-lan-service
sudo docker buildx build -t $IMAGE:amd64 .
sudo docker push $IMAGE:amd64
sudo docker buildx build --platform linux/arm/v7 -t $IMAGE:armv7 .
sudo docker push $IMAGE:armv7
sudo docker login $REGISTRY
sudo docker buildx build --push -t $IMAGE:amd64 .
sudo docker buildx build --push --platform linux/arm/v7 -t $IMAGE:armv7 .
sudo docker manifest create --amend $IMAGE:latest $IMAGE:amd64 $IMAGE:armv7
sudo docker manifest push $IMAGE:latest