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

This commit is contained in:
2025-12-17 10:37:44 +01:00
parent 6ff9903f51
commit dc2b0b04f7

View File

@@ -19,21 +19,21 @@ jobs:
apt-get update -y -qq apt-get update -y -qq
apt-get install -y buildah apt-get install -y buildah
echo "🔐 Configurando credenciales para el registro" #echo "🔐 Configurando credenciales para el registro"
echo "[[registry]]" > /etc/containers/registries.conf #echo "[[registry]]" > /etc/containers/registries.conf
echo "prefix = \"nexus.rancherk3.duckdns.org\"" >> /etc/containers/registries.conf #echo "prefix = \"nexus.rancherk3.duckdns.org\"" >> /etc/containers/registries.conf
echo "location = \"nexus.rancherk3.duckdns.org\"" >> /etc/containers/registries.conf #echo "location = \"nexus.rancherk3.duckdns.org\"" >> /etc/containers/registries.conf
echo "insecure = true" >> /etc/containers/registries.conf #echo "insecure = true" >> /etc/containers/registries.conf
#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
echo "🚀 Construyendo imagen con Buildah" echo "🚀 Construyendo imagen con Buildah"
buildah bud -f Dockerfile -t nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest . buildah bud --isolation=chroot --storage-driver=vfs -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 nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest buildah push --storage-driver=vfs nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest
buildah push nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA} buildah push --storage-driver=vfs nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA}
echo "✅ Imagen construida y subida exitosamente" echo "✅ Imagen construida y subida exitosamente"