Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix: website carlin.ts cicd config
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed May 13, 2021
1 parent 6755fe0 commit de1113e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/cli/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
//registry.npmjs.org/:_authToken=$NPM_TOKEN
6 changes: 3 additions & 3 deletions packages/website/carlin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ module.exports = () => {
cloudfront: true,
gtmId: 'GTM-XXXX',
}),
carlinCicdConfig: yaml.load(
fs.readFileSync('../../cicd/carlin.yml', 'utf-8'),
),
carlinCicdConfig: fs
.readFileSync('../../cicd/carlin.ts', 'utf-8')
.trim(),
...(() => {
const cicdTemplate = getCicdTemplate({ pipelines: ['main'], s3 });
return {
Expand Down
7 changes: 5 additions & 2 deletions packages/website/docs/commands/deploy-cicd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: deploy cicd
---

import CodeBlock from '../../src/components/CodeBlock';
import InnerHTML from '../../src/components/InnerHTML';
import Template from '../../src/components/Template';

Expand Down Expand Up @@ -38,9 +39,11 @@ This project was create using [GitHub](https://github.com).

### Creating The CICD Stack

1. Create a config file, for example, `carlin.yml` inside your CICD folder with the configuration:
1. Create a config file, for example, `carlin.ts` inside your CICD folder with the configuration:

<Template json={carlinCicdConfig} />
<CodeBlock className="ts">{carlinCicdConfig}</CodeBlock>

Don't forget to replace the values with your data.

1. Execute

Expand Down
3 changes: 0 additions & 3 deletions packages/website/src/components/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ const Template = (props) => {
return (
<div
style={{
marginBottom: '32px',
marginTop: '32px',
fontSize: '0.9em',
maxHeight: '600px',
overflowY: 'auto',
}}
>
{/* <div> */}
<ThemeCodeBlock {...props} />
{/* </div> */}
</div>
);
};
Expand Down

0 comments on commit de1113e

Please sign in to comment.