-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cloudsmith): move cloudsmith CircleCI config into plugin
Tool Kit will be able to merge the additional custom CircleCI config into the configuration already defined by the circleci-deploy plugin. This will allow users to explicitly opt into the cloudsmith logic by installing the plugin, and compartmentalises the configuration.
- Loading branch information
1 parent
5a13ed9
commit a6f4eb9
Showing
4 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
version: 2 | ||
|
||
plugins: | ||
- '@dotcom-tool-kit/circleci-deploy' | ||
|
||
options: | ||
hooks: | ||
- CircleCi: | ||
workflows: | ||
- name: 'tool-kit' | ||
jobs: | ||
- name: 'deploy-review' | ||
custom: | ||
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.organisation': | ||
cloudsmith-org: !toolkit/option '@dotcom-tool-kit/cloudsmith.organisation' | ||
!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' | ||
!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' | ||
!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' | ||
!toolkit/if-defined '@dotcom-tool-kit/cloudsmith.serviceAccount': | ||
cloudsmith-service-account: !toolkit/option '@dotcom-tool-kit/cloudsmith.serviceAccount' |