Skip to content

Commit 55b7324

Browse files
committed
Merge branch 'main' into DOCSS-1818-deploys-updates
2 parents 793af17 + 2e4d5c5 commit 55b7324

File tree

125 files changed

+11323
-53
lines changed

Some content is hidden

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

125 files changed

+11323
-53
lines changed

.circleci/config.yml

Lines changed: 67 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ parameters:
66
default: ""
77

88
orbs:
9-
aws-cli: circleci/[email protected]
9+
aws-cli: circleci/[email protected]
10+
vale: circleci/[email protected]
1011

1112
executors:
1213
node_executor:
1314
docker:
1415
- image: cimg/node:22.15.1
1516
working_directory: ~/project
1617

18+
python_executor:
19+
docker:
20+
- image: cimg/python:3.12.11
21+
working_directory: ~/project
22+
1723
ruby_executor:
1824
docker:
1925
- image: cimg/ruby:3.4
@@ -63,9 +69,9 @@ jobs:
6369
steps:
6470
- checkout
6571
- run:
66-
name: Fetch branches matching server-*
72+
name: Fetch branches matching server-4*
6773
command: |
68-
for branch in $(git ls-remote --heads origin | awk '{print $2}' | grep 'refs/heads/server-' | sed 's|refs/heads/||'); do
74+
for branch in $(git ls-remote --heads origin | awk '{print $2}' | grep 'refs/heads/server-4' | sed 's|refs/heads/||'); do
6975
echo "[INFO] Fetching branch: $branch"
7076
git checkout "$branch"
7177
git pull origin "$branch"
@@ -101,14 +107,14 @@ jobs:
101107
paths:
102108
- build
103109
- build.zip
110+
- scripts
104111
- persist_to_workspace:
105112
root: .
106113
paths:
107114
- build
108115
- notify_error:
109116
message: "Build job failed for branch ${CIRCLE_BRANCH}"
110117

111-
112118
validate:
113119
executor: ruby_executor
114120
steps:
@@ -129,7 +135,6 @@ jobs:
129135
- notify_error:
130136
message: "Validation job failed for branch ${CIRCLE_BRANCH}"
131137

132-
133138
deploy-preview:
134139
executor: node_executor
135140
steps:
@@ -184,19 +189,50 @@ jobs:
184189
- notify_error:
185190
message: "Deploy preview job failed for branch ${CIRCLE_BRANCH}"
186191

187-
188192
deploy-production:
189-
executor: node_executor
193+
executor: python_executor
194+
parameters:
195+
bucket_name:
196+
description: The name of the s3 bucket where static assets are stored.
197+
type: string
198+
build_dir:
199+
default: "build"
200+
description: The path to the docs build directory
201+
type: string
190202
steps:
191203
- attach_workspace:
192204
at: .
193205
- aws-setup
194206
- run:
195207
name: Deploy Production Site to S3
196208
command: |
209+
AWS_S3_BUCKET=<< parameters.bucket_name >>
210+
BUILD_DIRECTORY=<< parameters.build_dir >>
211+
197212
set -e
198213
echo "[INFO] Deploying production site..."
199-
aws s3 sync build s3://${DOCS_BUILD_BUCKET}/ --delete --endpoint-url ${S3_ENDPOINT}
214+
aws s3 sync "$BUILD_DIRECTORY" "s3://$AWS_S3_BUCKET/"
215+
- run:
216+
name: install pyyaml requests
217+
command: |
218+
set -e
219+
echo "[INFO] Installing pyyaml requests..."
220+
pip install pyyaml requests
221+
- run:
222+
name: Deploy Redirects to S3
223+
command: |
224+
AWS_S3_BUCKET=<< parameters.bucket_name >>
225+
226+
set -e
227+
echo "[INFO] Deploying redirects..."
228+
#REMEMBER TO UPDATE THE START/END PARAMETER IN THE VALIDATE JOB TO MATCH
229+
python scripts/create-redirects.py $AWS_S3_BUCKET --start 0 --end 10
230+
- run:
231+
name: Validate Redirects
232+
command: |
233+
set -e
234+
echo "[INFO] Validating redirects..."
235+
python scripts/validate-redirects.py https://circleci.com/docs-preview --start 0 --end 10
200236
- notify_error:
201237
message: "Production deployment job failed for branch ${CIRCLE_BRANCH}"
202238

@@ -241,8 +277,14 @@ jobs:
241277
echo "[WARN] Tag '${TAG}' not found."
242278
fi
243279
244-
245280
workflows:
281+
lint:
282+
unless:
283+
equal: [main, << pipeline.git.branch >>]
284+
jobs:
285+
- vale/lint:
286+
reference_branch: main
287+
base_dir: docs
246288
build_validate_and_deploy:
247289
when:
248290
equal: ["", << pipeline.parameters.cleanup_preview_branch >>]
@@ -256,13 +298,27 @@ workflows:
256298
filters:
257299
branches:
258300
ignore: main
259-
context: circleci-docs-static
301+
context:
302+
[
303+
circleci-docs-static,
304+
docs-platform-assets,
305+
web-ui-npm,
306+
web-ui-datadog,
307+
]
260308
- deploy-production:
261309
requires: [validate]
262310
filters:
263311
branches:
264312
only: main
265-
context: circleci-docs-static
313+
context:
314+
[
315+
circleci-docs-static,
316+
docs-platform-assets,
317+
web-ui-npm,
318+
web-ui-datadog,
319+
]
320+
bucket_name: "circleci-docs-platform-assets"
321+
build_dir: "build"
266322
cleanup_preview:
267323
when: pipeline.parameters.cleanup_preview_branch != ""
268324
jobs:

.vale.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
StylesPath = styles
2+
3+
Vocab = Docs
4+
5+
MinAlertLevel = suggestion
6+
7+
Packages = Readability
8+
9+
[asciidoctor]
10+
# attribute = value
11+
#
12+
# where 'YES' enables and 'NO' disables.
13+
14+
# enable
15+
experimental = YES
16+
17+
# assign a specific value
18+
attribute-missing = drop
19+
20+
[*.adoc]
21+
BasedOnStyles = circleci-docs, Vale, Readability, Openly

DEVELOPMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ The site will be available at `http://localhost:3000` by default.
8484
npm run build:docs
8585
```
8686

87-
- **Fetch server branches** (for server admin docs). You will need to have local copies of all server-* branches to be able to build the full docs site locally:
87+
- **Fetch server branches** (for server admin docs). You will need to have local copies of all server-4* branches to be able to build the full docs site locally:
8888
```bash
8989
npm run fetch-server-branches
9090
```
9191

92-
- **Force fetch server branches** if you want to force all your server-* branches to the state of the upstream "current" versions, use the --force flag. This is recommended if you have no local changes on any server-* branch:
92+
- **Force fetch server branches** if you want to force all your server-4* branches to the state of the upstream "current" versions, use the --force flag. This is recommended if you have no local changes on any server-4* branch:
9393

9494
```bash
9595
npm run fetch-server-branches --force
@@ -257,7 +257,7 @@ When changes are made to the main branch to the build processes, the UI, or all
257257
3. Run `git rebase main`
258258
4. Push those changes with `git push --force-with-lease origin server-4.1` - remember to use the correct server branch number.
259259

260-
This should be done for every server-* branch.
260+
This should be done for every server-4* branch.
261261

262262
### Creating a New Component
263263

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This technical documentation consists of several specialized files:
4141
cd circleci-docs-static
4242
npm ci
4343
```
44-
2. **Make sure you've cloned server-* branches (Server Administration Docs)**
44+
2. **Make sure you've cloned server-4* branches (Server Administration Docs)**
4545

4646
```bash
4747
npm run fetch-server-branches

antora-playbook.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
site:
22
title: CircleCI Documentation
3-
url: https://circleci.com/docs
3+
url: https://circleci.com/docs-preview
44
robots: allow
55
keys:
66
cookiebot: a28b71f3-4d2e-4eac-93bc-34929948dd7d
@@ -16,7 +16,7 @@ content:
1616
start_path: docs/orbs
1717
- url: .
1818
start_path: docs/server-admin
19-
branches: [server-*]
19+
branches: [server-4*]
2020
- url: .
2121
start_path: docs/contributors
2222
ui:
@@ -46,6 +46,8 @@ asciidoc:
4646
helmdiffversion: 3.5.0
4747
kotsversion: 1.65.0
4848
page-toclevels: 6
49+
idprefix: ""
50+
idseparator: "-"
4951
extensions:
5052
- '@asciidoctor/tabs'
5153
urls:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: server-admin
2+
title: Server
3+
version: server-4.1
4+
display_version: Server 4.1
5+
nav:
6+
- modules/ROOT/nav.adoc
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
* xref:overview:index.adoc[CircleCI server 4.1]
2+
** xref:overview:circleci-server-overview.adoc[CircleCI Server Overview]
3+
** xref:overview:release-notes.adoc[Release notes]
4+
5+
* xref:installation:index.adoc[Installing CircleCI server]
6+
** xref:installation:phase-1-prerequisites.adoc[Phase 1: Prerequisites]
7+
** xref:installation:phase-2-core-services.adoc[Phase 2: Core services installation]
8+
** xref:installation:phase-3-execution-environments.adoc[Phase 3: Execution environments installation]
9+
** xref:installation:phase-4-post-installation.adoc[Phase 4: Post-installation]
10+
** xref:installation:hardening-your-cluster.adoc[Hardening your cluster]
11+
** xref:installation:installing-server-behind-a-proxy.adoc[Installing server behind a proxy]
12+
** xref:installation:upgrade-server.adoc[Upgrading server]
13+
** xref:installation:installation-reference.adoc[Installation reference]
14+
15+
* xref:air-gapped-installation:index.adoc[Installing CircleCI server in an air-gapped environment]
16+
** xref:air-gapped-installation:phase-1-prerequisites.adoc[Phase 1 - Prerequisites]
17+
** xref:air-gapped-installation:phase-2-configure-object-storage.adoc[Phase 2 - Configure object storage]
18+
** xref:air-gapped-installation:phase-3-install-circleci-server.adoc[Phase 3 - Install CircleCI server]
19+
** xref:air-gapped-installation:phase-4-configure-nomad-clients.adoc[Phase 4 - Configure Nomad clients]
20+
** xref:air-gapped-installation:phase-5-test-your-installation.adoc[Phase 5 - Test installation]
21+
** xref:air-gapped-installation:additional-considerations.adoc[Additional considerations]
22+
** xref:air-gapped-installation:example-values.adoc[Example values.yaml]
23+
24+
* xref:operator:index.adoc[CircleCI server operator guide]
25+
** xref:operator:operator-overview.adoc[Operator overview]
26+
** xref:operator:introduction-to-nomad-cluster-operation.adoc[Introduction to Nomad cluster operation]
27+
** xref:operator:managing-user-accounts.adoc[Managing user accounts]
28+
** xref:operator:managing-orbs.adoc[Managing orbs]
29+
** xref:operator:manage-virtual-machines-with-vm-service.adoc[Manage virtual machines with VM service]
30+
** xref:operator:configuring-external-services.adoc[Configuring external services]
31+
** xref:operator:expanding-internal-database-volumes.adoc[Expanding internal database volumes]
32+
** xref:operator:managing-load-balancers.adoc[Managing load balancers]
33+
** xref:operator:user-authentication.adoc[User authentication]
34+
** xref:operator:managing-build-artifacts.adoc[Managing build artifacts]
35+
** xref:operator:usage-data-collection.adoc[Usage data collection]
36+
** xref:operator:circleci-server-security-features.adoc[CircleCI server security features]
37+
** xref:operator:application-lifecycle.adoc[Application lifecycle]
38+
** xref:operator:troubleshooting-and-support.adoc[Troubleshooting and support]
39+
** xref:operator:backup-and-restore.adoc[Backup and restore]
40+
** xref:operator:upgrade-mongo.adoc[Upgrade MongoDB]
41+
** xref:operator:faq.adoc[FAQs]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
= CircleCI server administration
2+
:page-noindex: true
3+
:page-layout: subsection
4+
:page-description: CircleCI server documentation for installing, configuring, and managing CircleCI server.
5+
6+
CircleCI server is the on-premisis CircleCI platform. In this section you will find the documentation for installing, configuring, and managing CircleCI server.

0 commit comments

Comments
 (0)