2024-10-05 22:14:37 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-10-05 22:05:01 +00:00
|
|
|
|
|
|
|
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"
|