From d0e2c5f75c5697736b8f10db2192b4a3ac7ccd82 Mon Sep 17 00:00:00 2001 From: otherview Date: Mon, 16 Oct 2023 18:03:14 +0100 Subject: [PATCH] CI fixes for deployment --- .github/workflows/manual-deploy-obscuro-gateway.yml | 2 +- .github/workflows/manual-deploy-obscuro-scan-2.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-deploy-obscuro-gateway.yml b/.github/workflows/manual-deploy-obscuro-gateway.yml index d94ee70296..696d36c8bd 100644 --- a/.github/workflows/manual-deploy-obscuro-gateway.yml +++ b/.github/workflows/manual-deploy-obscuro-gateway.yml @@ -94,7 +94,7 @@ jobs: az vm create -g Testnet -n "${{env.RESOURCE_STARTING_NAME}}-OG-${{ GITHUB.RUN_NUMBER }}" \ --admin-username obscurouser --admin-password "${{ secrets.OBSCURO_NODE_VM_PWD }}" \ --public-ip-address-dns-name "obscurogateway-${{env.RESOURCE_STARTING_NAME}}" \ - --tags deploygroup=ObscuroNode-${{env.RESOURCE_STARTING_NAME}}-${{ GITHUB.RUN_NUMBER }} ${{env.RESOURCE_TAG_NAME}}=true \ + --tags deploygroup=ObscuroGateway-${{env.RESOURCE_STARTING_NAME}}-${{ GITHUB.RUN_NUMBER }} ${{env.RESOURCE_TAG_NAME}}=true \ --vnet-name ObscuroGateway-${{env.RESOURCE_STARTING_NAME}}-01VNET --subnet ObscuroGateway-${{env.RESOURCE_STARTING_NAME}}-01Subnet \ --size Standard_D4_v5 --image Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest \ --public-ip-sku Basic --authentication-type password diff --git a/.github/workflows/manual-deploy-obscuro-scan-2.yml b/.github/workflows/manual-deploy-obscuro-scan-2.yml index 91af8ee707..88c02dd2cb 100644 --- a/.github/workflows/manual-deploy-obscuro-scan-2.yml +++ b/.github/workflows/manual-deploy-obscuro-scan-2.yml @@ -14,6 +14,7 @@ on: options: - 'dev-testnet' - 'uat-testnet' + - 'sepolia-testnet' jobs: build-and-deploy: @@ -24,7 +25,14 @@ jobs: - name: 'Set up Docker' uses: docker/setup-buildx-action@v1 - - name: 'Set Obscuro Scan variables for testnet' + - name: 'Set Obscuro Scan variables for sepolia-testnet' + if: ${{ github.event.inputs.testnet_type == 'sepolia-testnet' }} + run: | + echo "OBSCURO_SCAN_FE_BUILD_TAG=testnetobscuronet.azurecr.io/obscuronet/fe_obscuro_scan_sepolia_testnet:latest" >> $GITHUB_ENV + echo "OBSCURO_SCAN_API_BUILD_TAG=testnetobscuronet.azurecr.io/obscuronet/api_obscuro_scan_sepolia_testnet:latest" >> $GITHUB_ENV + echo "OBSCURO_SCAN_NODE_HOST=erpc.sepolia-testnet.obscu.ro" >> $GITHUB_ENV + + - name: 'Set Obscuro Scan variables for uat-testnet' if: ${{ github.event.inputs.testnet_type == 'uat-testnet' }} run: | echo "OBSCURO_SCAN_FE_BUILD_TAG=testnetobscuronet.azurecr.io/obscuronet/fe_obscuro_scan_uat_testnet:latest" >> $GITHUB_ENV