Skip to content

Commit 42730f3

Browse files
committed
Split CircleCI configuration into multiple files.
1 parent d318285 commit 42730f3

80 files changed

Lines changed: 2564 additions & 1895 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

.vortex/installer/tests/Fixtures/handler_process/deps_updates_provider_ci_circleci/.circleci/config.yml renamed to .circleci/build-test-deploy.yml

Lines changed: 141 additions & 86 deletions
Large diffs are not rendered by default.

.circleci/config.yml

Lines changed: 0 additions & 832 deletions
This file was deleted.

.circleci/update-dependencies.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# CircleCI configuration file for automated dependency updates via Renovate.
2+
#
3+
# Scheduled pipelines:
4+
# The `update-dependencies` workflow requires a schedule trigger configured in
5+
# CircleCI UI.
6+
# Go to Project Settings > Triggers > Add Scheduled Trigger:
7+
# - Trigger name: update-dependencies
8+
# - Config source: update-dependencies.yml
9+
# - Branch: develop
10+
# - Schedule: Every day at 11:05 and 23:05 UTC (or a custom schedule)
11+
# See https://www.vortextemplate.com/docs/continuous-integration/circleci
12+
version: '2.1'
13+
14+
################################################################################
15+
# PARAMETERS
16+
################################################################################
17+
18+
parameters:
19+
run_update_dependencies:
20+
type: boolean
21+
default: false
22+
23+
################################################################################
24+
# JOBS
25+
################################################################################
26+
27+
jobs:
28+
# Self-hosted dependency updates.
29+
# Add the following environment variables to the CircleCI project:
30+
# - RENOVATE_TOKEN: GitHub access token.
31+
# - RENOVATE_REPOSITORIES: Repository to run Renovate on as `vendor/repository`.
32+
# - RENOVATE_GIT_AUTHOR: Author for Renovate commits as `Name <email@example.com>`.
33+
# Variables provided below can be overridden in the CircleCI project settings.
34+
update-dependencies:
35+
docker:
36+
- image: renovate/renovate:40.36.8
37+
environment:
38+
RENOVATE_PLATFORM: 'github'
39+
RENOVATE_AUTODISCOVER: false
40+
RENOVATE_DEPENDENCY_DASHBOARD_TITLE: 'Renovate Dependency Dashboard (self-hosted) by CircleCI'
41+
RENOVATE_DEPENDENCY_DASHBOARD: false
42+
RENOVATE_DRY_RUN: false
43+
LOG_LEVEL: 'debug'
44+
45+
steps:
46+
- checkout
47+
- run:
48+
name: Check if RENOVATE_TOKEN is set
49+
command: |
50+
if [ -z "${RENOVATE_TOKEN}" ]; then
51+
echo "RENOVATE_TOKEN is not set. Skipping job."
52+
circleci-agent step halt
53+
fi
54+
55+
if [ -z "${RENOVATE_REPOSITORIES}" ]; then
56+
echo "Renovate repository is not set. Skipping job."
57+
circleci-agent step halt
58+
fi
59+
60+
if [ -z "${RENOVATE_GIT_AUTHOR}" ]; then
61+
echo "Renovate git author is not set. Skipping job."
62+
circleci-agent step halt
63+
fi
64+
65+
- run:
66+
name: Validate Renovate configuration
67+
command: renovate-config-validator
68+
69+
- run:
70+
name: Run Renovate
71+
command: renovate
72+
73+
################################################################################
74+
# WORKFLOWS
75+
################################################################################
76+
77+
workflows:
78+
# Self-hosted Renovate workflow.
79+
# Requires an "update-dependencies" schedule trigger configured in CircleCI UI.
80+
update-dependencies:
81+
when:
82+
and:
83+
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
84+
- equal: ["update-dependencies", << pipeline.schedule.name >>]
85+
jobs:
86+
- update-dependencies
87+
88+
update-dependencies-manual:
89+
when: << pipeline.parameters.run_update_dependencies >>
90+
jobs:
91+
- update-dependencies

0 commit comments

Comments
 (0)