Refactor CI configuration to include volume mapping and streamline build process
Some checks failed
ci/woodpecker/push/ci Pipeline failed

This commit is contained in:
2025-10-15 19:45:19 +02:00
parent 98d1a20359
commit 961e38ec1e
2 changed files with 7 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ steps:
- name: deploy
image: quay.io/buildah/stable
privileged: true
volumes:
- /data/woodpecker-builds:/data
commands:
- echo $DOCKER_PASSWORD | buildah login docker.io -u $DOCKER_USERNAME --password-stdin
- chmod +x ./push-image.sh

View File

@@ -5,6 +5,9 @@ IMAGE_NAME="tintounn/my-fedora"
IMAGE_TAG="latest"
OUTPUT_DIR="output/"
echo "[INFO] Build de l'image avec sudo..."
buildah bud -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
export TMPDIR=/data/buildah
mkdir -p /data/buildah
echo "[INFO] Build de l'image avec sudo..."
buildah TMPDIR=/data/buildah bud --isolation chroot -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .