Refactor CI configuration to include volume mapping and streamline build process
Some checks failed
ci/woodpecker/push/ci Pipeline failed
Some checks failed
ci/woodpecker/push/ci Pipeline failed
This commit is contained in:
@@ -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
|
||||
|
||||
7
build.sh
7
build.sh
@@ -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} .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user