Update workflow for env setup
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m34s

This commit is contained in:
Prathamesh Musale 2024-11-06 13:59:48 +05:30
parent cc22861890
commit a32d0a6e9a

View File

@ -5,6 +5,12 @@ on:
branches:
- main
env:
REGISTRY_USER_KEY: ${{ secrets.REGISTRY_USER_KEY }}
REGISTRY_BOND_ID: ${{ secrets.REGISTRY_BOND_ID }}
DEPLOYER_LRN: lrn://vaasl-provider/deployers/webapp-deployer-api.apps.vaasl.io
AUTHORITY: laconic-deploy
jobs:
deploy:
runs-on: ubuntu-latest
@ -32,24 +38,24 @@ jobs:
- name: Set up environment
run: |
# Create a .env file with the necessary environment variables from GitHub secrets
echo "REGISTRY_BOND_ID=${{ secrets.REGISTRY_BOND_ID }}" > packages/deployer/.env
echo "DEPLOYER_LRN=lrn://vaasl-provider/deployers/webapp-deployer-api.apps.vaasl.io" >> packages/deployer/.env
echo "AUTHORITY=laconic-deploy" >> packages/deployer/.env
# Create a .env file with the necessary variables
echo "REGISTRY_BOND_ID=$REGISTRY_BOND_ID" > packages/deployer/.env
echo "DEPLOYER_LRN=$DEPLOYER_LRN" >> packages/deployer/.env
echo "AUTHORITY=$AUTHORITY" >> packages/deployer/.env
# Create a config file with necessary endpoints and placeholders for secrets
# Create a config file with necessary endpoints and secrets
cat > packages/deployer/config.yml <<EOF
services:
registry:
rpcEndpoint: https://laconicd-sapo.laconic.com
gqlEndpoint: https://laconicd-sapo.laconic.com/api
userKey: ${{ secrets.REGISTRY_USER_KEY }}
bondId: ${{ secrets.REGISTRY_BOND_ID }}
userKey: $REGISTRY_USER_KEY
bondId: $REGISTRY_BOND_ID
chainId: laconic-testnet-2
gasPrice: 0.001alnt
EOF
- name: Run Deploy Script
- name: Run deploy script
run: |
cd packages/deployer
./deploy-frontend.sh