12 lines
472 B
Bash
Executable File
12 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
CONTAINER_NAME="moritzgrafde"
|
|
DEPLOYMENT="moritzgrafde"
|
|
NAMESPACE="web"
|
|
|
|
hugo
|
|
|
|
docker build --platform linux/amd64 -t ${CONTAINER_NAME}:latest -t registry.haumdaucher.de/${CONTAINER_NAME}:latest .
|
|
docker push registry.haumdaucher.de/${CONTAINER_NAME}:latest
|
|
|
|
kubectl patch deployment $DEPLOYMENT -n $NAMESPACE -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$( date +%s )\"}}}}}"
|
|
kubectl get po -l app=$DEPLOYMENT -n $NAMESPACE -w |