From dadf14ea46e2c1a2d3f8237b5c9022e25958eb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Fri, 23 Aug 2024 13:28:42 +0200 Subject: [PATCH] fix --- .../manual-deploy-obscuro-gateway.yml | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/manual-deploy-obscuro-gateway.yml b/.github/workflows/manual-deploy-obscuro-gateway.yml index bb7b6b7d57..3687d982c1 100644 --- a/.github/workflows/manual-deploy-obscuro-gateway.yml +++ b/.github/workflows/manual-deploy-obscuro-gateway.yml @@ -69,13 +69,20 @@ jobs: echo "VNET_NAME=$VNET_NAME" >> $GITHUB_ENV echo "SUBNET_NAME=$SUBNET_NAME" >> $GITHUB_ENV - # Set instance-specific variables - DOCKER_BUILD_TAG_GATEWAY="${{ vars[env.INSTANCE_PREFIX + 'DOCKER_BUILD_TAG_GATEWAY'] }}" - AZURE_DEPLOY_GROUP_GATEWAY="${{ vars[env.INSTANCE_PREFIX + 'AZURE_DEPLOY_GROUP_GATEWAY'] }}" - L2_RPC_URL_VALIDATOR="${{ vars[env.INSTANCE_PREFIX + 'L2_RPC_URL_VALIDATOR'] }}" - GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME="${{ vars[env.INSTANCE_PREFIX + 'GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME'] }}" - GATEWAY_RATE_LIMIT_WINDOW="${{ vars[env.INSTANCE_PREFIX + 'GATEWAY_RATE_LIMIT_WINDOW'] }}" - GATEWAY_MAX_CONCURRENT_REQUESTS_PER_USER="${{ vars[env.INSTANCE_PREFIX + 'GATEWAY_MAX_CONCURRENT_REQUESTS_PER_USER'] }}" + # Set instance-specific variables by constructing the full key before accessing vars + DOCKER_BUILD_TAG_KEY="${INSTANCE_PREFIX}DOCKER_BUILD_TAG_GATEWAY" + AZURE_DEPLOY_GROUP_KEY="${INSTANCE_PREFIX}AZURE_DEPLOY_GROUP_GATEWAY" + L2_RPC_URL_KEY="${INSTANCE_PREFIX}L2_RPC_URL_VALIDATOR" + GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME_KEY="${INSTANCE_PREFIX}GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME" + GATEWAY_RATE_LIMIT_WINDOW_KEY="${INSTANCE_PREFIX}GATEWAY_RATE_LIMIT_WINDOW" + GATEWAY_MAX_CONCURRENT_REQUESTS_KEY="${INSTANCE_PREFIX}GATEWAY_MAX_CONCURRENT_REQUESTS_PER_USER" + + DOCKER_BUILD_TAG_GATEWAY="${{ vars[DOCKER_BUILD_TAG_KEY] }}" + AZURE_DEPLOY_GROUP_GATEWAY="${{ vars[AZURE_DEPLOY_GROUP_KEY] }}" + L2_RPC_URL_VALIDATOR="${{ vars[L2_RPC_URL_KEY] }}" + GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME="${{ vars[GATEWAY_RATE_LIMIT_USER_COMPUTE_TIME_KEY] }}" + GATEWAY_RATE_LIMIT_WINDOW="${{ vars[GATEWAY_RATE_LIMIT_WINDOW_KEY] }}" + GATEWAY_MAX_CONCURRENT_REQUESTS_PER_USER="${{ vars[GATEWAY_MAX_CONCURRENT_REQUESTS_KEY] }}" echo "DOCKER_BUILD_TAG_GATEWAY=$DOCKER_BUILD_TAG_GATEWAY" >> $GITHUB_ENV echo "AZURE_DEPLOY_GROUP_GATEWAY=$AZURE_DEPLOY_GROUP_GATEWAY" >> $GITHUB_ENV