TEST: build
Some checks failed
build / build-and-push (push) Failing after 2m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

This commit is contained in:
2025-12-17 16:03:52 +01:00
parent dc2b0b04f7
commit 998e240cbe

View File

@@ -28,12 +28,17 @@ jobs:
#echo "Iniciando sesión en el registro" #echo "Iniciando sesión en el registro"
#echo $NEXUS_PASSWORD | buildah login -u $NEXUS_USER --password-stdin nexus.rancherk3.duckdns.org #echo $NEXUS_PASSWORD | buildah login -u $NEXUS_USER --password-stdin nexus.rancherk3.duckdns.org
export BUILDAH_ISOLATION=chroot
export STORAGE_DRIVER=vfs
export DEBIAN_FRONTEND=noninteractive
echo "🚀 Construyendo imagen con Buildah" echo "🚀 Construyendo imagen con Buildah"
buildah bud --isolation=chroot --storage-driver=vfs -f Dockerfile -t nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest . buildah bud -f Dockerfile -t nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest .
buildah tag nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA} buildah tag nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA}
echo "🚀 Subiendo imágenes" echo "🚀 Subiendo imágenes"
buildah push --storage-driver=vfs nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest buildah push nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest
buildah push --storage-driver=vfs nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA} buildah push nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA}
echo "✅ Imagen construida y subida exitosamente" echo "✅ Imagen construida y subida exitosamente"