2022-01-15 17:42:14 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
IMAGE_NAME=robocar-oak-camera
|
|
|
|
TAG=$(git describe)
|
2022-10-20 15:17:02 +00:00
|
|
|
FULL_IMAGE_NAME=git.cyrilix.bzh/robocars/${IMAGE_NAME}:${TAG}
|
2022-01-18 18:29:30 +00:00
|
|
|
PLATFORM="linux/amd64,linux/arm64"
|
|
|
|
#PLATFORM="linux/amd64,linux/arm64,linux/arm/v7"
|
2022-01-15 17:42:14 +00:00
|
|
|
|
2022-01-18 18:29:30 +00:00
|
|
|
podman build . --platform "${PLATFORM}" --manifest "${IMAGE_NAME}:${TAG}"
|
2022-11-02 15:31:46 +00:00
|
|
|
podman manifest push --all "localhost/${IMAGE_NAME}:${TAG}" "docker://${FULL_IMAGE_NAME}"
|
2022-01-15 19:02:36 +00:00
|
|
|
|
|
|
|
printf "\nImage %s published" "docker://${FULL_IMAGE_NAME}"
|