diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index de5f798..4e0e4f6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,12 +28,17 @@ jobs: #echo "Iniciando sesión en el registro" #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" - 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} - + echo "🚀 Subiendo imágenes" - buildah push --storage-driver=vfs 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:latest + buildah push nexus.rancherk3.duckdns.org/tfm/microserviciospython:${GITHUB_SHA} echo "✅ Imagen construida y subida exitosamente" \ No newline at end of file