@@ -28,22 +28,6 @@ aliases:
2828 - &nightly_db_schedule "0 18 * * *"
2929 # ;> !PROVISION_TYPE_PROFILE
3030
31- # ;< DEPS_UPDATE_PROVIDER_CI
32- # Specify the correct repository to prevent the bot from accessing all
33- # repositories available via $RENOVATE_TOKEN.
34- # ;< VORTEX_DEV
35- - &renovatebot_repository 'drevops/vortex-destination'
36- # ;> VORTEX_DEV
37- # #### - &renovatebot_repository 'your_org/your_site'
38- # The author details to use for commits made by RenovateBot.
39- # ;< VORTEX_DEV
40- - &renovatebot_git_author 'Renovate Self Hosted <deployer+renovatebot@drevops.com>'
41- # ;> VORTEX_DEV
42- # #### - &renovatebot_git_author 'RenovateBot Self Hosted <renovatebot@your-site-domain.example>'
43- # The schedule to run RenovateBot on. Defaults to running twice a day.
44- - &renovatebot_schedule "5 11,23 * * *"
45- # ;> DEPS_UPDATE_PROVIDER_CI
46-
4731 # Shared runner container configuration applied to each job.
4832 - &runner_config
4933 working_directory : &working_directory ~/project
@@ -57,14 +41,14 @@ aliases:
5741 # This container has all the necessary tools to run a dockerized environment.
5842 # https://github.com/drevops/ci-runner
5943 # https://hub.docker.com/repository/docker/drevops/ci-runner/tags
60- - image : drevops/ci-runner:25.3 .0
44+ - image : drevops/ci-runner:25.5 .0
6145 auth :
6246 username : ${VORTEX_CONTAINER_REGISTRY_USER}
6347 password : ${VORTEX_CONTAINER_REGISTRY_PASS}
6448 environment :
6549 # Set runner timezone to ensure that executed operations use correct timestamps.
6650 # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
67- TZ : " Australia/Melbourne "
51+ TZ : " UTC "
6852 # Set runner terminal capabilities.
6953 TERM : xterm-256color
7054 # Disable strict host key checking for SSH connections.
@@ -85,10 +69,8 @@ aliases:
8569 VORTEX_CI_TEST_RESULTS : &test_results /tmp/tests
8670 # Directory to store test artifacts.
8771 VORTEX_CI_ARTIFACTS : &artifacts /tmp/artifacts
88- # Directory to store code exported between jobs.
89- VORTEX_EXPORT_CODE_DIR : &vortex_build_export_dir /tmp/workspace/code
9072 # Directory to use for artifact deployments.
91- VORTEX_DEPLOY_ARTIFACT_SRC : *vortex_build_export_dir
73+ VORTEX_DEPLOY_ARTIFACT_SRC : /tmp/workspace/code
9274 # Source code location for artifact deployments.
9375 VORTEX_DEPLOY_ARTIFACT_ROOT : *working_directory
9476 # Report file location for artifact deployments.
@@ -117,6 +99,16 @@ aliases:
11799 find . -name "docker-compose.yml" -print0 | xargs -0 -I {} sh -c "sed -i -e ''/###/d'' {} && sed -i -e ''s/##//'' {}"
118100 mkdir -p /tmp/workspace/code
119101
102+
103+ # ###############################################################################
104+ # PARAMETERS
105+ # ###############################################################################
106+
107+ parameters :
108+ run_update_dependencies :
109+ type : boolean
110+ default : false
111+
120112# ###############################################################################
121113# JOBS
122114# ###############################################################################
@@ -158,10 +150,10 @@ jobs:
158150 # Change 'v1' to 'v2', 'v3' etc., commit and push to force cache reset.
159151 # Lookup cache based on the default branch and a timestamp. Allows
160152 # to use cache from the very first build on the day (sanitized database dump, for example).
161- - v25.3 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback" }}-{{ checksum "/tmp/db_cache_timestamp" }}
153+ - v25.5 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback" }}-{{ checksum "/tmp/db_cache_timestamp" }}
162154 # Fallback to caching by default branch name only. Allows to use
163155 # cache from the branch build on the previous day.
164- - v25.3 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback" }}-
156+ - v25.5 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback" }}-
165157
166158 - run :
167159 name : Download DB
@@ -191,7 +183,7 @@ jobs:
191183 # The cache will not be saved if it already exists.
192184 # Note that the cache fallback flag is enabled for this case in order
193185 # to save cache even if the fallback is not used when restoring it.
194- key : v25.3 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-{{ checksum "/tmp/db_cache_timestamp" }}
186+ key : v25.5 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-{{ checksum "/tmp/db_cache_timestamp" }}
195187 paths :
196188 - /root/project/.data
197189
@@ -237,8 +229,8 @@ jobs:
237229 keys :
238230 # Use cached artifacts from previous builds of this branch.
239231 # https://circleci.com/docs/2.0/caching/#restoring-cache
240- - v25.3 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-{{ checksum "/tmp/db_cache_timestamp" }}
241- - v25.3 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-
232+ - v25.5 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-{{ checksum "/tmp/db_cache_timestamp" }}
233+ - v25.5 .0-db11-{{ checksum "/tmp/db_cache_branch" }}-{{ checksum "/tmp/db_cache_fallback_yes" }}-
242234 # ;> !PROVISION_TYPE_PROFILE
243235
244236 - *step_setup_remote_docker
@@ -261,8 +253,9 @@ jobs:
261253 - run :
262254 name : Export built codebase
263255 command : |
264- mkdir -p "${VORTEX_EXPORT_CODE_DIR}"
265- docker compose cp -L cli:"/app/." "${VORTEX_EXPORT_CODE_DIR}"
256+ mkdir -p "/tmp/workspace/code"
257+ docker compose cp -L cli:"/app/." "/tmp/workspace/code"
258+ du -sh "/tmp/workspace/code"
266259
267260 - run :
268261 name : Install development dependencies
@@ -373,6 +366,7 @@ jobs:
373366 - *step_process_codebase_for_ci
374367
375368 - run :
369+ name : Deploy
376370 command : |
377371 VORTEX_DEPLOY_BRANCH="${CIRCLE_BRANCH}" \
378372 VORTEX_DEPLOY_PR="$(echo ${CIRCLE_PULL_REQUEST} | cut -d'/' -f 7)" \
@@ -398,6 +392,7 @@ jobs:
398392 - *step_process_codebase_for_ci
399393
400394 - run :
395+ name : Deploy
401396 command : VORTEX_DEPLOY_MODE="tag" ./scripts/vortex/deploy.sh
402397 no_output_timeout : 30m
403398
@@ -407,22 +402,49 @@ jobs:
407402
408403 # ;< DEPS_UPDATE_PROVIDER_CI
409404 # Self-hosted dependency updates.
410- # Add RENOVATE_TOKEN as an environment variable with GitHub access token in UI.
411- deps-updates :
405+ # Add the following environment variables to the CircleCI project:
406+ # - RENOVATE_TOKEN: GitHub access token.
407+ # - RENOVATE_REPOSITORIES: Repository to run Renovate on as `vendor/repository`.
408+ # - RENOVATE_GIT_AUTHOR: Author for Renovate commits as `Name <email@example.com>`.
409+ # Variables provided below can be overridden in the CircleCI project settings.
410+ update-dependencies :
412411 docker :
413- - image : renovate/renovate:38.55.2
412+ - image : renovate/renovate:40.36.8
414413 environment :
415414 RENOVATE_PLATFORM : ' github'
416415 RENOVATE_AUTODISCOVER : false
417- RENOVATE_DEPENDENCY_DASHBOARD_TITLE : ' RenovateBot Dependency Dashboard (self-hosted)'
416+ RENOVATE_DEPENDENCY_DASHBOARD_TITLE : ' Renovate Dependency Dashboard (self-hosted) by CircleCI '
418417 RENOVATE_DEPENDENCY_DASHBOARD : false
419418 RENOVATE_DRY_RUN : false
420- RENOVATE_REPOSITORIES : *renovatebot_repository
421- RENOVATE_GIT_AUTHOR : *renovatebot_git_author
419+ LOG_LEVEL : ' debug '
420+
422421 steps :
423422 - checkout
424- - run : renovate-config-validator
425- - run : renovate
423+ - run :
424+ name : Check if RENOVATE_TOKEN is set
425+ command : |
426+ if [ -z "${RENOVATE_TOKEN}" ]; then
427+ echo "RENOVATE_TOKEN is not set. Skipping job."
428+ circleci-agent step halt
429+ fi
430+
431+ if [ -z "${RENOVATE_REPOSITORIES}" ]; then
432+ echo "Renovate repository is not set. Skipping job."
433+ circleci-agent step halt
434+ fi
435+
436+ if [ -z "${RENOVATE_GIT_AUTHOR}" ]; then
437+ echo "Renovate git author is not set. Skipping job."
438+ circleci-agent step halt
439+ fi
440+
441+ - run :
442+ name : Validate Renovate configuration
443+ command : renovate-config-validator
444+
445+ - run :
446+ name : Run Renovate
447+ command : renovate
426448 # ;> DEPS_UPDATE_PROVIDER_CI
427449
428450 # ;============================================================================
@@ -443,7 +465,7 @@ jobs:
443465
444466 - run :
445467 name : Run CircleCI tests (long)
446- command : VORTEX_DEV_VOLUMES_MOUNTED=0 VORTEX_DEV_TEST_COVERAGE_DIR=/tmp/artifacts/coverage .vortex/tests/test.postbuild.sh
468+ command : VORTEX_DEV_VOLUMES_SKIP_MOUNT=1 VORTEX_DEV_TEST_COVERAGE_DIR=/tmp/artifacts/coverage .vortex/tests/test.postbuild.sh
447469
448470 - store_test_results :
449471 path : *test_results
@@ -645,15 +667,20 @@ workflows:
645667 # ;> !PROVISION_TYPE_PROFILE
646668
647669 # ;< DEPS_UPDATE_PROVIDER_CI
648- # Self-hosted Renovatebot workflow.
649- deps-updates :
670+ # Self-hosted Renovate workflow.
671+ update-dependencies :
650672 triggers :
651673 - schedule :
652- cron : *renovatebot_schedule
674+ cron : " 5 11,23 * * * "
653675 filters :
654676 branches :
655677 only :
656678 - develop
657679 jobs :
658- - deps-updates
680+ - update-dependencies
681+
682+ update-dependencies-manual :
683+ when : << pipeline.parameters.run_update_dependencies >>
684+ jobs :
685+ - update-dependencies
659686 # ;> DEPS_UPDATE_PROVIDER_CI
0 commit comments