[igt-dev] [PATCH 09/11] ci: Upload build tarball to MinIO
Tomeu Vizoso
tomeu.vizoso at collabora.com
Wed Mar 9 07:42:40 UTC 2022
For use in test jobs in LAVA that need to download them into their
rootfs.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
.gitlab-ci.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7476b3306845..04152103b923 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,8 @@ variables:
-Drunner=enabled
-Dlibunwind=enabled
LANG: "C.UTF-8"
+ MINIO_HOST: minio-packet.freedesktop.org
+ PIPELINE_ARTIFACTS_BASE: ${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}
stages:
- build-containers
@@ -158,10 +160,17 @@ build:tests-debian-meson-armhf:
build:tests-debian-meson-arm64:
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:commit-$CI_COMMIT_SHA
stage: build
+ variables:
+ MINIO_ARTIFACT_NAME: igt-arm64
script:
- export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/
- meson --cross-file ci/meson-cross-arm64.txt build
- ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1
+ - cp -rf ci build/.
+ - MINIO_ARTIFACT_NAME="$MINIO_ARTIFACT_NAME.tar.gz" # Pass needed files to the test stage
+ - tar -czf $MINIO_ARTIFACT_NAME build
+ - ci-fairy minio login --token-file "${CI_JOB_JWT_FILE}"
+ - ci-fairy minio cp ${MINIO_ARTIFACT_NAME} minio://${PIPELINE_ARTIFACTS_BASE}/${MINIO_ARTIFACT_NAME}
artifacts:
paths:
- build
--
2.31.1
More information about the igt-dev
mailing list