glove80-zmk-config/build.sh
2024-10-05 23:05:01 +01:00

10 lines
211 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
IMAGE=glove80-zmk-config-docker
BRANCH="${1:-main}"
docker build -t "$IMAGE" .
docker run --rm -v "$PWD:/config" -e UID="$(id -u)" -e GID="$(id -g)" -e BRANCH="$BRANCH" "$IMAGE"