nextcloud-supervisord/build.sh

11 lines
392 B
Bash
Raw Normal View History

2023-03-28 19:55:30 -04:00
#!/bin/bash
DATE_TAG=$(date +%Y)-$(date +%m)-$(date +%d)_$(date +%H)-$(date +%M)-$(date +%S)
NEXTCLOUD_VER="24"
REGISTRY="code.balsillie.net"
ORG="containers"
IMAGE="nextcloud-supervisord"
IMAGE_FULL="$REGISTRY/$ORG/$IMAGE"
docker build --pull -f ./Dockerfile --build-arg NEXTCLOUD_VER=$NEXTCLOUD_VER -t "$IMAGE_FULL:$NEXTCLOUD_VER" -t "$IMAGE_FULL:$DATE_TAG" .
docker push -a "$IMAGE_FULL"