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
|
- name: deploy
|
||||||
image: quay.io/buildah/stable
|
image: quay.io/buildah/stable
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /data/woodpecker-builds:/data
|
||||||
commands:
|
commands:
|
||||||
- echo $DOCKER_PASSWORD | buildah login docker.io -u $DOCKER_USERNAME --password-stdin
|
- echo $DOCKER_PASSWORD | buildah login docker.io -u $DOCKER_USERNAME --password-stdin
|
||||||
- chmod +x ./push-image.sh
|
- chmod +x ./push-image.sh
|
||||||
|
|||||||
7
build.sh
7
build.sh
@@ -5,6 +5,9 @@ IMAGE_NAME="tintounn/my-fedora"
|
|||||||
IMAGE_TAG="latest"
|
IMAGE_TAG="latest"
|
||||||
OUTPUT_DIR="output/"
|
OUTPUT_DIR="output/"
|
||||||
|
|
||||||
echo "[INFO] Build de l'image avec sudo..."
|
export TMPDIR=/data/buildah
|
||||||
buildah bud -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
|
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