13 lines
369 B
Bash
Executable File
13 lines
369 B
Bash
Executable File
#! /bin/bash
|
|
|
|
IMAGE_NAME=robocar-road
|
|
|
|
TAG=$(git describe)
|
|
FULL_IMAGE_NAME=docker.io/cyrilix/${IMAGE_NAME}:${TAG}
|
|
|
|
# Remove old images
|
|
podman manifest rm localhost/${IMAGE_NAME}:${TAG} ${FULL_IMAGE_NAME}
|
|
|
|
podman build . --platform linux/amd64,linux/arm64 --manifest ${IMAGE_NAME}:${TAG}
|
|
podman manifest push --all --rm localhost/${IMAGE_NAME}:${TAG} ${FULL_IMAGE_NAME}
|