diff options
author | Tomeu Vizoso <[email protected]> | 2020-04-01 13:07:46 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-07 11:52:30 +0000 |
commit | dcd171f5e9bd612b33144c90e4b0c1ac919498f0 (patch) | |
tree | 266e0bbc66ef997799249f4663be29f5c84a6853 /.gitlab-ci/prepare-artifacts.sh | |
parent | bf3d4b1adde4c354ac31e2d7a679dc3946f4abc2 (diff) |
gitlab-ci: More stable URL for kernel and ramdisk artifacts, for LAVA
Place the kernel and ramdisk into a place in the file server so the URL
will only change when the contents also change.
Also put the Mesa build into a separate tarball so the ramdisk's
contents don't change every build.
With proper caching in place, all devices in the same farm need only to
download the mesa tarball once, saving time.
As we switch to MinIO for making kernels and rootfs available to LAVA
devices, we can stop using Docker to distribute them.
Instead, build when needed in separate jobs that push directly to MinIO,
from where LAVA devices can download them.
Signed-off-by: Tomeu Vizoso <[email protected]>
Acked-by: Daniel Stone <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5515>
Diffstat (limited to '.gitlab-ci/prepare-artifacts.sh')
-rwxr-xr-x | .gitlab-ci/prepare-artifacts.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci/prepare-artifacts.sh b/.gitlab-ci/prepare-artifacts.sh index 4c230921715..9bf5e3dcc7c 100755 --- a/.gitlab-ci/prepare-artifacts.sh +++ b/.gitlab-ci/prepare-artifacts.sh @@ -47,8 +47,13 @@ mkdir -p artifacts/ tar -cf artifacts/install.tar install # If the container has LAVA stuff, prepare the artifacts for LAVA jobs -if [ -d /lava-files ]; then +if [ -n "$UPLOAD_FOR_LAVA" ]; then # Pass needed files to the test stage cp $CI_PROJECT_DIR/.gitlab-ci/generate_lava.py artifacts/. cp $CI_PROJECT_DIR/.gitlab-ci/lava-deqp.yml.jinja2 artifacts/. + + gzip -c artifacts/install.tar > mesa-${DEBIAN_ARCH}.tar.gz + ci-fairy minio login $CI_JOB_JWT + MINIO_PATH=minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID} + ci-fairy minio cp mesa-${DEBIAN_ARCH}.tar.gz minio://${MINIO_PATH}/mesa-${DEBIAN_ARCH}.tar.gz fi |