Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**/node_modules/
**/build/
**/dist/
**/.next/
**/tsconfig.tsbuildinfo

**/Dockerfile*
**/.dockerignore

**/*.log
**/.env*

**/coverage-summary
4 changes: 0 additions & 4 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ jobs:
deploy_port: 229
secrets:
SSH_PRIVATE_KEY: ${{ secrets.STAGING_KEY }}
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_AUTH_METHOD: ${{ secrets.VAULT_AUTH_METHOD }}
VAULT_AUTH_ROLE_ID: ${{ secrets.VAULT_AUTH_ROLE_ID }}
VAULT_AUTH_SECRET_ID: ${{ secrets.VAULT_AUTH_SECRET_ID }}
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jobs:
ci_steps: 'lint test'
workflow: '.github/workflows/pr.yml'
environment: 'staging'
package_manager: 'pnpm'
4 changes: 0 additions & 4 deletions .secrets

This file was deleted.

39 changes: 0 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,45 +66,6 @@ Project repository

- [Infinum Handbook - Branching](https://infinum.com/handbook/frontend/git/branching)

## Secrets

### Installation

You need to install `secrets_cli` gem. Explained [here](https://github.com/infinum/secrets_cli)

`gem install secrets_cli`

### Configuration

Create a new token on [GitHub](https://github.com/settings/tokens) with `read:org` permissions.

Add 3 new environment variables to `.zshrc` file:

```
export VAULT_ADDR=https://vault.byinfinum.co:8200
export VAULT_AUTH_METHOD=github
export VAULT_AUTH_TOKEN={your_github_token}
```

Don't forget to restart your `exec $SHELL`

> Check the [secrets_cli prerequisites](https://github.com/infinum/secrets_cli#prerequisites) section for more details.

### Pull the secrets

Pull the secrets for the specific environment. Explained [here](https://github.com/infinum/secrets_cli#usage)

`secrets pull -e development`

### Vault dashboard

Example link to Vault dashboard:

- [development](https://vault.byinfinum.co:8200/ui/vault/secrets/js/show/js-react-example/development)
- [staging](https://vault.byinfinum.co:8200/ui/vault/secrets/js/show/js-react-example/staging)

You should log in with the GitHub method and use VAULT_AUTH_TOKEN for the token.

## Styleguide

This project is using the styleguide as defined in the [Infinum Handbook](https://infinum.com/handbook/frontend/react/chakra-ui).
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
js-react-example:
image: infinum-js-react-example
container_name: infinum-js-react-example
build:
context: .
dockerfile: Dockerfile
env_file:
- ./.env.local
ports:
- '3000:3000'