Files
docker/latex/build-image.sh
Janis Hutz 0b63418f14
Some checks failed
Create and publish container / build_container (push) Failing after 10s
Improve build script
2025-12-23 07:32:02 +01:00

12 lines
248 B
Bash
Executable File

#!/bin/sh
echo "Build will be tagged with $1"
echo "Build directory is $(pwd)"
OLD_IMG=docker image ls -q "$1"
docker buildx build . -t "$1"
docker push "$1"
echo "New build uploaded, removing old image, id: $OLD_IMG"
docker image rm "$OLD_IMG"