13 lines
407 B
Bash
Executable File
13 lines
407 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
CONTAINER_NAME="moritzgrafde"
|
|
DEPLOYMENT="moritzgrafde"
|
|
NAMESPACE="web"
|
|
|
|
npm run build
|
|
|
|
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 rollout restart deployment/$DEPLOYMENT -n $NAMESPACE
|
|
kubectl rollout status deployment/$DEPLOYMENT -n $NAMESPACE |