FreedomBox/.ci/update-container-image.sh
Sunil Mohan Adapa 3742ab8f6b
ci: Generalize script to update container, switch to podman
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2024-10-15 18:56:32 +03:00

12 lines
398 B
Bash
Executable File

#! /bin/bash
# SPDX-License-Identifier: AGPL-3.0-or-later
CONTAINER=$1
CONTAINER="${CONTAINER:-gitlabci}"
podman login registry.salsa.debian.org
# Build and upload a new image to the container registry
podman build -t registry.salsa.debian.org/freedombox-team/freedombox:${CONTAINER} -f .ci/Dockerfile.${CONTAINER} .
podman push registry.salsa.debian.org/freedombox-team/freedombox:${CONTAINER}