Skip to content

Commit

Permalink
Merge pull request #407 from Financial-Times/revert-402-CPP-1372-fix-…
Browse files Browse the repository at this point in the history
…orb-deploy-change-api

Revert #402 and update change-api-orb
  • Loading branch information
joelcarr authored Apr 18, 2023
2 parents 4a8d37a + b003897 commit 860b184
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion orb/src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ display:
# If your orb requires other orbs, you can import them like this. Otherwise remove the "orbs" stanza.
orbs:
node: circleci/node@5.0.2
change-api: financial-times/change-api@1.0.1
change-api: financial-times/change-api@1.0.7
aws-cli: circleci/aws-cli@3.1.4
serverless-framework: circleci/serverless-framework@2.0.1
11 changes: 4 additions & 7 deletions orb/src/jobs/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ parameters:
default: ''
type: string
system-code:
type: env_var_name
default: CIRCLE_PROJECT_REPONAME
default: $CIRCLE_PROJECT_REPONAME
description: >-
The environment variable containing the system-code of the system being changed.
environment:
default: production
description: The environment in which the system is being changed.
The system-code of the system being changed. Defaults to the repository
name.
type: string

executor: << parameters.executor >>
Expand All @@ -32,5 +29,5 @@ steps:
name: Deploy to production
command: npx dotcom-tool-kit deploy:production
- change-api/change-log:
environment: << parameters.environment >>
environment: production
system-code: << parameters.system-code >>
11 changes: 4 additions & 7 deletions orb/src/jobs/heroku-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ parameters:
default: default
type: executor
system-code:
type: env_var_name
default: CIRCLE_PROJECT_REPONAME
default: $CIRCLE_PROJECT_REPONAME
description: >-
The environment variable containing the system-code of the system being changed.
environment:
default: production
description: The environment in which the system is being changed.
The system-code of the system being changed. Defaults to the repository
name.
type: string

executor: << parameters.executor >>
Expand All @@ -20,5 +17,5 @@ steps:
name: Deploy to production
command: npx dotcom-tool-kit deploy:production
- change-api/change-log:
environment: << parameters.environment >>
environment: production
system-code: << parameters.system-code >>

0 comments on commit 860b184

Please sign in to comment.