- Remove build-local.sh and old build-push.sh (crictl/scp/buildah workflow) - New build-push.sh: docker build + push to registry.nerdrage.cloud/dickloads - deployment.yaml: update image to registry.nerdrage.cloud/dickloads:latest, imagePullPolicy Always
24 lines
625 B
Bash
Executable File
24 lines
625 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# build-push.sh — build and push humor-units image to the private registry
|
|
# Usage: ./build-push.sh [tag]
|
|
# Requires: docker, access to registry.nerdrage.cloud
|
|
set -euo pipefail
|
|
|
|
TAG="${1:-latest}"
|
|
REGISTRY="registry.nerdrage.cloud"
|
|
IMAGE="$REGISTRY/dickloads:$TAG"
|
|
|
|
echo "==> Building $IMAGE..."
|
|
docker build --tag "$IMAGE" "$(dirname "$0")"
|
|
|
|
echo "==> Pushing $IMAGE..."
|
|
docker push "$IMAGE"
|
|
|
|
echo "==> Restarting deployment..."
|
|
kubectl rollout restart deployment/humor-units -n dickloads
|
|
|
|
echo "==> Waiting for rollout..."
|
|
kubectl rollout status deployment/humor-units -n dickloads
|
|
|
|
echo "==> Done."
|