18 lines
423 B
Bash
Executable File
18 lines
423 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
VERSION=${1:?"Usage: ./build.sh <version> e.g. ./build.sh 1.0.0"}
|
|
REGISTRY="git.lojr.de/ilvoen/varde"
|
|
PLATFORMS="linux/amd64,linux/arm64,linux/arm/v7,linux/386"
|
|
|
|
echo "→ Building static variant..."
|
|
docker buildx build \
|
|
--platform ${PLATFORMS} \
|
|
-f Dockerfile \
|
|
-t ${REGISTRY}:${VERSION} \
|
|
-t ${REGISTRY}:latest \
|
|
--push .
|
|
|
|
echo "✓ Done! Pushed:"
|
|
echo " ${REGISTRY}:${VERSION} + latest"
|