Skip to content
Snippets Groups Projects

ci: Build workhorse binaries and upload/download as generic package

All threads resolved!
Compare and Show latest version
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -200,16 +200,16 @@ setup-test-env:
GITLAB_WORKHORSE_PACKAGE_FILES: "gitlab-resize-image gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse WORKHORSE_TREE"
script:
- workhorse_tree=$(git rev-parse HEAD:workhorse)
- workhorse_binaries_file="workhorse-${workhorse_tree}.tar.gz"
- echo $workhorse_tree $workhorse_binaries_file
- workhorse_package_file="workhorse-${workhorse_tree}.tar.gz"
- echo $workhorse_tree $workhorse_package_file
# Download the package
- package_url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${GITLAB_WORKHORSE_FOLDER}/${workhorse_tree}/${workhorse_package_file}"
- echo "Downloading from ${package_url} ..."
- 'wget --header="JOB-TOKEN: $CI_JOB_TOKEN" ${package_url} || true'
- |
if [ -f "${workhorse_binaries_file}" ]; then
if [ -f "${workhorse_package_file}" ]; then
mkdir -p ${TMP_TEST_GITLAB_WORKHOSE_FOLDER};
tar -xzvf ${workhorse_binaries_file} -C ${TMP_TEST_FOLDER};
tar -xzvf ${workhorse_package_file} -C ${TMP_TEST_FOLDER};
ls -l ${TMP_TEST_GITLAB_WORKHOSE_FOLDER};
fi;
- run_timed_command "scripts/setup-test-env"
Loading