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>
This commit is contained in:
Sunil Mohan Adapa 2024-10-11 08:12:34 -07:00 committed by Veiko Aasa
parent 60c6fd4d27
commit 3742ab8f6b
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 11 additions and 8 deletions

11
.ci/update-container-image.sh Executable file
View File

@ -0,0 +1,11 @@
#! /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}

View File

@ -1,8 +0,0 @@
#! /bin/bash
# SPDX-License-Identifier: AGPL-3.0-or-later
docker login registry.salsa.debian.org
# Build and upload a new image to the container registry
DOCKER_BUILDKIT=1 docker build -t registry.salsa.debian.org/freedombox-team/freedombox:gitlabci -f .ci/Dockerfile.gitlabci .
docker push registry.salsa.debian.org/freedombox-team/freedombox:gitlabci