better log output remove apk cache add tag to build script

This commit is contained in:
2021-12-30 05:29:36 +01:00
parent afb8c4b531
commit 5e000d5ff2
3 changed files with 35 additions and 11 deletions
+7 -3
View File
@@ -1,6 +1,6 @@
#!/bin/bash
DOCKER_IMAGE_NAME="borgbackup-ssh"
DOCKER_IMAGE_NAME="daniel156161/borgbackup-ssh"
DOCKER_CONTAINER_NAME="borgbackup"
run_docker_container() {
@@ -14,9 +14,13 @@ run_docker_container() {
}
build_docker_image() {
TAG="$1"
echo "Building..."
docker build -t "$DOCKER_IMAGE_NAME" .
docker build -t "$DOCKER_IMAGE_NAME:$TAG" .
}
build_docker_image
build_docker_image "latest"
run_docker_container
#build_docker_image "1.1.17"