Files
docker-stm32/CubeClt/build_and_publish.sh
Marc Adler e2627bcd52 new file: .devcontainer/devcontainer.json
new file:   CubeClt/Dockerfile
	new file:   CubeClt/Resources/CubeCLT/install.sh
	new file:   CubeClt/Resources/Scripts/reinstall-cmake.sh
	new file:   CubeClt/build_and_publish.sh
	new file:   CubeMx/Dockerfile
	new file:   CubeMx/Resources/CubeMX/install-cubemx.sh
	new file:   CubeMx/build_and_publish.sh
	modified:   README.md
2025-03-12 23:45:57 +01:00

23 lines
578 B
Bash
Executable File

#!/bin/bash
push=false
# Process oprions
while getopts "pt:" opt; do
case $opt in
p) push=true;;
t) tag=$OPTARG;;
\?) echo "Invalid option: -$OPTARG" >&2 ;;
:) echo "Option -$OPTARG requires an argument." >&2 ;;
esac
done
docker build -t nexus.springblast.de:8082/carly/docker-stm32/cubeclt:$tag .
docker build -t nexus.springblast.de:8082/carly/docker-stm32/cubeclt:latest .
if [ "$push" = true ]; then
docker push nexus.springblast.de:8082/carly/docker-stm32/cubeclt:$tag
docker push nexus.springblast.de:8082/carly/docker-stm32/cubeclt:latest
fi