robocar-road/build-docker.sh

13 lines
369 B
Bash
Raw Normal View History

2021-10-11 16:55:19 +00:00
#! /bin/bash
IMAGE_NAME=robocar-road
TAG=$(git describe)
FULL_IMAGE_NAME=docker.io/cyrilix/${IMAGE_NAME}:${TAG}
2024-05-02 18:04:55 +00:00
# Remove old images
podman manifest rm localhost/${IMAGE_NAME}:${TAG} ${FULL_IMAGE_NAME}
2021-10-11 16:55:19 +00:00
2024-05-02 18:04:55 +00:00
podman build . --platform linux/amd64,linux/arm64 --manifest ${IMAGE_NAME}:${TAG}
podman manifest push --all --rm localhost/${IMAGE_NAME}:${TAG} ${FULL_IMAGE_NAME}