# Everything the AICC chart pulls at runtime. Mirror each line from Harbor into the
# customer's ECR under the same repository name; ${TAG} is the release tag
# (e.g. 8.3.158), ${SRC} is the Harbor project (registry.ib-x.ai/aicc-prod).
#
# scripts/aicc-mirror-to-ecr.sh does all of this (images, Redis, chart, creating the ECR
# repositories) in one command; the manual equivalent follows.
#
# Images are copied with all platforms/digests preserved:
#   skopeo copy --all docker://${SRC}/ib-api:${TAG} docker://<ACCOUNT>.dkr.ecr.<REGION>.amazonaws.com/<PREFIX>/ib-api:${TAG}
# ECR repositories must exist before the push (or use ECR repository creation templates).
#
# Our images are linux/amd64 only today; the cluster needs amd64 nodes (not Graviton).

${SRC}/ib-api:${TAG}
${SRC}/ib-worker:${TAG}
${SRC}/ib-scheduler:${TAG}
${SRC}/ib-voice:${TAG}
${SRC}/ib-ingestion:${TAG}
${SRC}/ib-frontend:${TAG}

# Helm chart, as an OCI artifact. The repository leaf name is "aicc"; the default full name is aicc/aicc.
# CHART_VERSION equals ${TAG} for a.b.c tags; a.b.c.d becomes a.b.c-d (push script maps it).
#   helm pull oci://${SRC}/aicc --version ${CHART_VERSION}
#   helm push aicc-${CHART_VERSION}.tgz oci://<ACCOUNT>.dkr.ecr.<REGION>.amazonaws.com/<PREFIX>
oci://${SRC}/aicc:${CHART_VERSION}

# Bundled Redis. Not covered by global.imageRegistry: mirror it to ECR as
# <PREFIX>/redis:7-alpine and set redis.image (see values-eks.yaml).
docker.io/library/redis:7-alpine

# ib-base is a build-time base image only; it is not pulled by the chart.
