Skip to content

Commit

Permalink
Add env and readme for deploy key setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NabinKawan committed Apr 22, 2024
1 parent 9219756 commit db1ddb2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/govtool-frontend/playwright/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FRONTEND_URL=http://localhost:8080
API_URL=http://localhost:8080/api

DOCS_URL=https://docs.sanchogov.tools

# 1 for testnet, 0 for mainnet
NETWORK_ID=1,

# Create mock wallets if true
ONE_TIME_WALLET_SETUP=false,

# Faucet
FAUCET_API_URL=https://faucet.sanchonet.world.dev.cardano.org
FAUCET_API_KEY=

# Kuber
KUBER_API_URL=https://sanchonet.kuber.cardanoapi.io
KUBER_API_KEY=
29 changes: 29 additions & 0 deletions tests/govtool-frontend/playwright/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# GitHub Pages Deployment SSH Deploy Key Generation Guide

This guide walks you through the process of generating an SSH deploy key for GitHub Pages deployment and securely integrating it into your workflow.

## Generating the SSH Deploy Key

Execute the following command in your terminal to generate the SSH deploy key:

```bash
ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-pages -N ""
```

This command will generate two files:

- `gh-pages.pub`: Public key
- `gh-pages`: Private key

## Integration Steps

1. **Repository Settings:**

- Navigate to your repository settings.

2. **Adding Public Key to Deploy Keys: Add to** [`https://github.com/cardanoapi/govtool-test-reports`](https://github.com/cardanoapi/govtool-test-reports)

- Go to Deploy Keys and add your public key. Make sure to grant it write access.

3. **Adding Private Key to Secrets:**
- Go to Secrets and add your private key as `DEPLOY_KEY`.

0 comments on commit db1ddb2

Please sign in to comment.