mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
60c6fd4d27
commit
3742ab8f6b
11
.ci/update-container-image.sh
Executable file
11
.ci/update-container-image.sh
Executable 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}
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user