Files
docker/latex/build-image.sh
Janis Hutz 44bee50856
Some checks failed
Create and publish container / build_container (push) Failing after 10s
Update build script
2025-12-23 07:33:06 +01:00

14 lines
291 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"
echo "Build complete, starting upload..."
docker push "$1"
echo "New build uploaded, removing old image, id: $OLD_IMG"
docker image rm "$OLD_IMG"