2022-09-27 18:15:03 +00:00
|
|
|
cache-workhorse:
|
|
|
|
extends:
|
|
|
|
- .default-retry
|
|
|
|
- .default-before_script
|
|
|
|
- .rails-cache
|
|
|
|
- .setup-test-env-cache
|
|
|
|
- .caching:rules:cache-workhorse
|
|
|
|
stage: prepare
|
|
|
|
variables:
|
|
|
|
SETUP_DB: "false"
|
|
|
|
script:
|
|
|
|
- source scripts/gitlab_component_helpers.sh
|
|
|
|
- 'gitlab_workhorse_archive_doesnt_exist || { echoinfo "INFO: Exiting early as package exists."; exit 0; }'
|
|
|
|
- run_timed_command "scripts/setup-test-env"
|
|
|
|
- run_timed_command "select_gitlab_workhorse_essentials"
|
|
|
|
- run_timed_command "create_gitlab_workhorse_package"
|
|
|
|
- run_timed_command "upload_gitlab_workhorse_package"
|
|
|
|
artifacts:
|
|
|
|
expire_in: 7d
|
|
|
|
paths:
|
|
|
|
- ${TMP_TEST_GITLAB_WORKHORSE_PATH}/
|
|
|
|
|
|
|
|
.cache-assets-base:
|
|
|
|
extends:
|
|
|
|
- .compile-assets-base
|
2022-10-12 12:09:35 +00:00
|
|
|
- .assets-compile-cache
|
2022-09-27 18:15:03 +00:00
|
|
|
- .caching:rules:cache-assets
|
|
|
|
stage: prepare
|
|
|
|
variables:
|
|
|
|
WEBPACK_REPORT: "false"
|
|
|
|
script:
|
|
|
|
- !reference [.yarn-install, script]
|
2022-10-05 12:09:04 +00:00
|
|
|
- export GITLAB_ASSETS_HASH=$(bundle exec rake gitlab:assets:hash_sum)
|
2022-09-27 18:15:03 +00:00
|
|
|
- source scripts/gitlab_component_helpers.sh
|
|
|
|
- 'gitlab_assets_archive_doesnt_exist || { echoinfo "INFO: Exiting early as package exists."; exit 0; }'
|
2022-10-05 21:09:08 +00:00
|
|
|
- assets_compile_script
|
2022-10-05 12:09:04 +00:00
|
|
|
- echo -n "${GITLAB_ASSETS_HASH}" > "cached-assets-hash.txt"
|
2022-09-27 18:15:03 +00:00
|
|
|
- run_timed_command "create_gitlab_assets_package"
|
|
|
|
- run_timed_command "upload_gitlab_assets_package"
|
|
|
|
|
|
|
|
cache-assets:test:
|
|
|
|
extends: .cache-assets-base
|
|
|
|
|
|
|
|
cache-assets:test as-if-foss:
|
|
|
|
extends:
|
|
|
|
- .cache-assets-base
|
|
|
|
- .as-if-foss
|
|
|
|
|
|
|
|
cache-assets:production:
|
|
|
|
extends: .cache-assets-base
|
|
|
|
variables:
|
|
|
|
NODE_ENV: "production"
|
|
|
|
RAILS_ENV: "production"
|