source/projects/tickertape/mkdocker.sh
Reid 'arrdem' McKenzie adf58a2b7d Merry Chipmunks
2024-12-26 03:33:13 -07:00

17 lines
444 B
Bash

#!/usr/bin/env bash
set -eoux -o pipefail
cd "$(dirname "$(realpath "$0")")"
tmpdir=$(mktemp -d)
target="//projects/tickertape:tickertape.zapp"
bazel build "${target}"
zapp=$(realpath $(bazel run --run_under=echo "${target}"))
cp Dockerfile "$tmpdir/"
cp -r "$zapp" "$tmpdir/"
cd "${tmpdir}"
docker build "$@" -f Dockerfile -t registry.tirefireind.us/arrdem/tickertape:latest .
docker push registry.tirefireind.us/arrdem/tickertape:latest