TEST: build
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user