#!/bin/bash

VERSION=v0.0.1

# Build and push API
docker build -f build/Dockerfile.mom -t ghcr.io/pfeifferj/container-mom-api:${VERSION} -t ghcr.io/pfeifferj/container-mom-api:latest .
docker push ghcr.io/pfeifferj/container-mom-api:${VERSION}
docker push ghcr.io/pfeifferj/container-mom-api:latest

# Build and push Operator
docker build -f build/Dockerfile.operator -t ghcr.io/pfeifferj/container-mom-operator:${VERSION} -t ghcr.io/pfeifferj/container-mom-operator:latest .
docker push ghcr.io/pfeifferj/container-mom-operator:${VERSION}
docker push ghcr.io/pfeifferj/container-mom-operator:latest

# Build and push Portal
docker build -f build/Dockerfile.portal -t ghcr.io/pfeifferj/container-mom-portal:${VERSION} -t ghcr.io/pfeifferj/container-mom-portal:latest .
docker push ghcr.io/pfeifferj/container-mom-portal:${VERSION}
docker push ghcr.io/pfeifferj/container-mom-portal:latest 