build(docker): fix tags into docker build script

This commit is contained in:
Cyrille Nofficial 2022-01-15 20:02:36 +01:00
parent 24e607429a
commit 4844669191
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,6 @@ ADD setup.py .
ENV PYTHON_EGG_CACHE=/tmp/cache
RUN python3 setup.py install && rm -rf /src
#RUN mkdir -p ${PYTHON_EGG_CACHE}
WORKDIR /tmp
USER 1234

View File

@ -5,5 +5,7 @@ TAG=$(git describe)
FULL_IMAGE_NAME=docker.io/cyrilix/${IMAGE_NAME}:${TAG}
podman build . --platform linux/amd64,linux/arm64,linux/arm/v7 --manifest ${IMAGE_NAME}
podman manifest push --format v2s2 --rm "localhost/${IMAGE_NAME}" "docker://${FULL_IMAGE_NAME}"
podman build . --platform linux/amd64,linux/arm64,linux/arm/v7 --manifest "${IMAGE_NAME}:${TAG}"
podman manifest push --format v2s2 "localhost/${IMAGE_NAME}:${TAG}" "docker://${FULL_IMAGE_NAME}"
printf "\nImage %s published" "docker://${FULL_IMAGE_NAME}"