@dotcom-tool-kit/hako
v2.1.0
Published
With Tool Kit [already set up](https://github.com/financial-times/dotcom-tool-kit#installing-and-using-tool-kit), install this plugin as a dev dependency:
Readme
@dotcom-tool-kit/hako
Installation & Usage
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/hakoAnd add it to your repo's .toolkitrc.yml:
plugins:
- '@dotcom-tool-kit/hako'Tasks
HakoDeploy
Deploy to ECS via the Hako CLI
Task options
| Property | Description | Type | Default |
| :------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------- | :------ |
| asReviewApp | whether to deploy as a temporary review app, used for code review. overrides the customEphemeralId option with its own hash of the git branch. | boolean | false |
| customEphemeralId | ID that is used by Hako to identify a particular ephemeral app | string | |
| customEphemeralManifest | path to another app.yaml manifest used to set custom parameters for an ephemeral app. if not set the manifest from the default path for the given environment will be used. | string | |
| environments (*) | the Hako environments to deploy an image to | Array<string> | |
(*) Required.
HakoDelete
Remove unneeded ephemeral app
Task options
| Property | Description | Type | Default |
| :---------------------- | :---------------------------------------------------------------------------------------------------------------- | :-------------- | :------ |
| appName (*) | name of the app with the ephemeral app to delete (will be the same as the name of the docker image) | string | |
| asReviewApp | whether to delete a temporary review app. overrides the ephemeralId option with its own hash of the git branch. | boolean | false |
| ephemeralId | ID that is used by Hako to identify a particular ephemeral app | string | |
| environments (*) | | Array<string> | |
(*) Required.
