1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-22 15:51:12 +00:00

resurrect deploy.sh to build and deploy all images

This commit is contained in:
Jason Hall 2020-12-21 10:07:21 -05:00
parent 27df9fd30b
commit e02f0a0d54
3 changed files with 33 additions and 79 deletions

21
deploy.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euxo pipefail
export KO_DOCKER_REPO=gcr.io/kontaindotme
out=$(mktemp -d)/tmp.tfvars
echo writing to $out
echo "images = {" > $out
cd cmd
for d in *; do
echo " \"$d\" = \"$(ko publish -P ./$d)\"" >> $out
done
echo "}" >> $out
cat $out
cd -
terraform apply -var-file=kontainme.tfvars -var-file=$out