This commit is contained in:
2023-08-29 21:34:00 +02:00
parent 99b58d0721
commit 6e41d9b4fa
3 changed files with 21 additions and 198 deletions

21
rust/update-k8s.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -o nounset
set -o pipefail
set -o errexit
id=$(pwgen -s 25 1)
url=registry.hkoerber.de/packager:$id
echo "NEW URL: " $url
./build-container.sh
docker tag packager:latest $url
docker push $url
pushd ~/projects/mycloud/
./kubectl.sh set image \
deployment/$(./kubectl.sh get deployment --output=jsonpath={.items..metadata.name} -l app=packager) \
packager=$url