Skip to content

Configure PR build deployment to Tonic UI demo repository

Cheton Wu edited this page May 5, 2025 · 2 revisions

To set up deployment for Tonic UI demo, follow these steps:

1. Generate SSH Key Pair

Run the following command to generate a public/private key pair:

ssh-keygen -t ed25519 -C '[email protected]:trendmicro-frontend/tonic-ui.git'

This will generate two files: ~/.ssh/id_ed25519 (private key) and ~/.ssh/id_ed25519.pub (public key).

2. Configure tonic-ui repository

  1. Visit tonic-ui repository
  2. Navigate to Settings > Secrets and variables > Actions
  3. Click New repository secret to create a new secret:
    • Name: TONIC_UI_DEMO_SSH_PRIVATE_KEY
    • Secret: <place_the_ssh_private_key>

3. Configure tonic-ui-demo repository

  1. Visit tonic-ui-demo repository
  2. Navigator to Settings > Deploy keys
  3. Click Add deploy key
    • Title: tonic-ui-demo
    • Key: <place_the_public_key>
    • Enable the Allow write access option

Clone this wiki locally