From a32d0a6e9a8784dd0cbec26546a37c5725644301 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 6 Nov 2024 13:59:48 +0530 Subject: [PATCH] Update workflow for env setup --- .gitea/workflows/deploy-frontend.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy-frontend.yaml b/.gitea/workflows/deploy-frontend.yaml index 51e4b9b2..1f604639 100644 --- a/.gitea/workflows/deploy-frontend.yaml +++ b/.gitea/workflows/deploy-frontend.yaml @@ -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 <