diff --git a/.github/workflows/deploy-frontend.yml b/.github/workflows/deploy-frontend.yml index a9cc73609..20179acb7 100644 --- a/.github/workflows/deploy-frontend.yml +++ b/.github/workflows/deploy-frontend.yml @@ -35,6 +35,18 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Free up disk space + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf /usr/local/share/boost + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo apt-get clean + echo "Disk space after cleanup:" + df -h + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -56,6 +68,13 @@ jobs: hosted_zone_id_host: ${{ vars.HOSTED_ZONE_ID_HOST }} db_username: ${{ vars.DB_USERNAME }} + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "yarn" + cache-dependency-path: platform/wab/yarn.lock + - name: Deploy frontend application working-directory: terraform env: diff --git a/terraform/scripts/deploy-frontend.sh b/terraform/scripts/deploy-frontend.sh index 64ae51df1..c0a659d70 100755 --- a/terraform/scripts/deploy-frontend.sh +++ b/terraform/scripts/deploy-frontend.sh @@ -46,6 +46,7 @@ HOST_BUCKET=$(terraform output -raw host_bucket_name) # Get backend API URL cd ../services/wab +terraform init -backend-config=config/${ENVIRONMENT}-backend.tfvars -reconfigure >/dev/null 2>&1 APP_URL=$(terraform output -raw application_url) # Navigate to platform directory (from terraform/projects/services/wab to platform/wab)