Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Aug 23, 2024
1 parent de281ae commit dadf14e
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/manual-deploy-obscuro-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dadf14e

Please sign in to comment.