Skip to content
Snippets Groups Projects

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

2 files
+ 86
22
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -195,8 +195,8 @@ setup-test-env:
TMP_TEST_GITLAB_WORKHOSE_FOLDER: "${TMP_TEST_FOLDER}/gitlab-workhorse"
script:
- source scripts/gitlab_workhorse_component_helpers.sh
- run_timed_command "download_gitlab_workhorse_package" || true
- run_timed_command "extract_gitlab_workhorse_package" || true
- run_timed_command "apt-get update -y && apt-get install -y upx" # FIXME: Add to the CI image
- run_timed_command "download_and_extract_gitlab_workhorse_package" || true
- run_timed_command "scripts/setup-test-env"
- run_timed_command "filter_gitlab_workhorse_binaries"
- echo -e "\e[0Ksection_start:`date +%s`:gitaly-test-build[collapsed=true]\r\e[0KCompiling Gitaly binaries"
@@ -232,9 +232,11 @@ build-components:
- .rails:rules:build-components
script:
- source scripts/gitlab_workhorse_component_helpers.sh
- run_timed_command "download_gitlab_workhorse_package" || true
- run_timed_command "apt-get update -y && apt-get install -y upx" # FIXME: Add to the CI image
- run_timed_command "download_gitlab_workhorse_package ${GITLAB_WORKHORSE_ARCHIVE}" || true
- 'echo "Size of the archive: $(du -h ${GITLAB_WORKHORSE_ARCHIVE})"'
# Early exit if the package already exists
- gitlab_workhorse_archive_doesnt_exist || exit 0
- 'gitlab_workhorse_archive_doesnt_exist || { echo "INFO: Exiting early as package exists."; exit 0; }'
- run_timed_command "scripts/setup-test-env"
- run_timed_command "filter_gitlab_workhorse_binaries"
- run_timed_command "create_gitlab_workhorse_archive"
Loading