#!/bin/bash

# Build the TailwindCSS assets
npm run build

# Build the site
hugo build

# Build and push the Docker image
docker build -t payneio/civildynamics.org . --file ./Dockerfile
docker push payneio/civildynamics.org

# Deploy to Kubernetes

# First time...
# bin/wild-app-deploy civildynamics

kubectl rollout restart deployment civildynamics -n civildynamics
