Skip to content

Commit 90dbcb2

Browse files
WIP deploy production config
1 parent 2500cb3 commit 90dbcb2

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

plugins/circleci-deploy/.toolkitrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ plugins:
44
options:
55
hooks:
66
- CircleCi:
7+
custom:
8+
orbs:
9+
change-api: financial-times/change-api@1.0.9
10+
cloudsmith-oidc: ft-circleci-orbs/cloudsmith-oidc@1.0
11+
aws-cli: circleci/aws-cli@3.1.4
12+
serverless-framework: circleci/serverless-framework@2.0.2
713
jobs:
814
- name: deploy-review
915
command: 'deploy:review'
@@ -15,6 +21,17 @@ options:
1521
command: 'test:staging'
1622
- name: deploy-production
1723
command: 'deploy:production'
24+
workspace:
25+
persist: false
26+
steps:
27+
pre:
28+
- setup_remote_docker:
29+
docker_layer_caching: true
30+
post:
31+
- change-api/change-log:
32+
environment: production
33+
system-code: << parameters.system-code >>
34+
1835
- name: teardown-review
1936
command: 'teardown:review'
2037
workspace:

plugins/circleci-deploy/test/__snapshots__/circleci-deploy.test.ts.snap

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
exports[`circleci-deploy config integration test should generate a .circleci/config.yml with the base config from circleci-deploy/.toolkitrc.yml 1`] = `
44
"version: 2.1
55
executors:
6+
base:
7+
docker:
8+
- image: cimg/base:stable
69
node:
710
docker:
811
- image: cimg/node:20.19-browsers
@@ -47,6 +50,11 @@ jobs:
4750
- run:
4851
name: test
4952
command: npx dotcom-tool-kit test:ci
53+
- store_test_results:
54+
path: test-results
55+
- store_artifacts:
56+
path: test-results
57+
destination: test-results
5058
- persist_to_workspace:
5159
root: .
5260
paths:
@@ -104,13 +112,14 @@ jobs:
104112
steps:
105113
- attach_workspace:
106114
at: .
115+
- setup_remote_docker:
116+
docker_layer_caching: true
107117
- run:
108118
name: deploy-production
109119
command: npx dotcom-tool-kit deploy:production
110-
- persist_to_workspace:
111-
root: .
112-
paths:
113-
- .toolkitstate
120+
- change-api/change-log:
121+
environment: production
122+
system-code: << parameters.system-code >>
114123
teardown-review:
115124
executor: node
116125
steps:
@@ -219,5 +228,9 @@ workflows:
219228
"closed")
220229
orbs:
221230
node: circleci/node@5.0.2
231+
change-api: financial-times/change-api@1.0.9
232+
cloudsmith-oidc: ft-circleci-orbs/cloudsmith-oidc@1.0
233+
aws-cli: circleci/aws-cli@3.1.4
234+
serverless-framework: circleci/serverless-framework@2.0.2
222235
"
223236
`;

0 commit comments

Comments
 (0)