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:
parent
27df9fd30b
commit
e02f0a0d54
3 changed files with 33 additions and 79 deletions
21
deploy.sh
Executable file
21
deploy.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue