Skip to content

Commit

Permalink
feat(cloudsmith): hardcode Cloudsmith organisation
Browse files Browse the repository at this point in the history
We'll likely never the flexibility to set a different organisation.

Co-Authored-By: Rowan Manning <[email protected]>
  • Loading branch information
ivomurrell and rowanmanning committed Dec 16, 2024
1 parent 55efc14 commit 117c3b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion lib/schemas/src/plugins/cloudsmith.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { z } from 'zod'

export const CloudsmithSchema = z.object({
organisation: z.string().optional().describe('the Cloudsmith organisation'),
serviceAccount: z.string().optional().describe('the Cloudsmith service account')
})
12 changes: 4 additions & 8 deletions plugins/cloudsmith/.toolkitrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,23 @@ options:
jobs:
- name: 'deploy-review'
custom:
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.organisation':
cloudsmith-org: !toolkit/option '@dotcom-tool-kit/cloudsmith.organisation'
cloudsmith-org: financial-times
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.serviceAccount':
cloudsmith-service-account: !toolkit/option '@dotcom-tool-kit/cloudsmith.serviceAccount'
- name: 'deploy-staging'
custom:
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.organisation':
cloudsmith-org: !toolkit/option '@dotcom-tool-kit/cloudsmith.organisation'
cloudsmith-org: financial-times
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.serviceAccount':
cloudsmith-service-account: !toolkit/option '@dotcom-tool-kit/cloudsmith.serviceAccount'
- name: 'deploy-production'
custom:
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.organisation':
cloudsmith-org: !toolkit/option '@dotcom-tool-kit/cloudsmith.organisation'
cloudsmith-org: financial-times
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.serviceAccount':
cloudsmith-service-account: !toolkit/option '@dotcom-tool-kit/cloudsmith.serviceAccount'
- name: 'nightly'
jobs:
- name: 'deploy-review'
custom:
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.organisation':
cloudsmith-org: !toolkit/option '@dotcom-tool-kit/cloudsmith.organisation'
cloudsmith-org: financial-times
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.serviceAccount':
cloudsmith-service-account: !toolkit/option '@dotcom-tool-kit/cloudsmith.serviceAccount'

0 comments on commit 117c3b7

Please sign in to comment.