Fix build script to ensure TMPDIR is set correctly before buildah command
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
4
build.sh
4
build.sh
@@ -4,10 +4,10 @@ set -euo pipefail
|
|||||||
IMAGE_NAME="tintounn/my-fedora"
|
IMAGE_NAME="tintounn/my-fedora"
|
||||||
IMAGE_TAG="latest"
|
IMAGE_TAG="latest"
|
||||||
OUTPUT_DIR="output/"
|
OUTPUT_DIR="output/"
|
||||||
|
|
||||||
export TMPDIR=/data/buildah
|
export TMPDIR=/data/buildah
|
||||||
mkdir -p /data/buildah
|
mkdir -p /data/buildah
|
||||||
|
|
||||||
echo "[INFO] Build de l'image avec sudo..."
|
echo "[INFO] Build de l'image avec sudo..."
|
||||||
buildah TMPDIR=/data/buildah bud --isolation chroot -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
|
TMPDIR=/data/buildah buildah bud --isolation chroot -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user