Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tenscan workflow #1724

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Deploys Tenscan on Azure for Testnet
# Builds the Tenscan image, pushes the image to dockerhub and starts the Tenscan on Azure

name: "[M] Deploy Tenscan 3 Testnet"
name: "[M] Deploy Tenscan Testnet"
run-name: "[M] Deploy Tenscan Testnet ( ${{ github.event.inputs.testnet_type }} )"
on:
workflow_dispatch:
Expand Down Expand Up @@ -46,21 +46,21 @@ jobs:

- name: Build and Push Docker FE Image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v3/frontend/Dockerfile .
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/tenscan/frontend/Dockerfile .
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 NOTE
Codebase verification is a beta feature.

The verification script has confirmed that the Dockerfile for the frontend does not exist at the specified path ./tools/tenscan/frontend/Dockerfile. This indicates an issue with the updated Docker build path in the pull request.

  • : The Docker build path for the frontend in the .github/workflows/manual-deploy-ten-scan.yml file points to a non-existent Dockerfile at ./tools/tenscan/frontend/Dockerfile.
Analysis chain

The Dockerfile path for the frontend image build has been updated to the new tenscan directory. Ensure that the new path is correct and the Dockerfile exists at this location.


Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the existence of the frontend Dockerfile in the tenscan directory.
fd Dockerfile --exec test -f ./tools/tenscan/frontend/Dockerfile

Length of output: 462



Script:

#!/bin/bash
# Corrected script to verify the existence of the frontend Dockerfile in the tenscan directory.
if [ -f "./tools/tenscan/frontend/Dockerfile" ]; then
  echo "Frontend Dockerfile exists."
else
  echo "Frontend Dockerfile does not exist."
fi

Length of output: 129

docker push ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }}

- name: Build and Push Docker API Image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_API }} -f ./tools/obscuroscan_v2/backend/Dockerfile .
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_API }} -f ./tools/tenscan/backend/Dockerfile .
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 NOTE
Codebase verification is a beta feature.

The verification process has confirmed that the backend Dockerfile does not exist at the specified path ./tools/tenscan/backend/Dockerfile. This information should be communicated to the user.

  • The Dockerfile for the backend in the tenscan directory does not exist.
Analysis chain

The Dockerfile path for the backend image build has been updated to the new tenscan directory. Similar to the frontend Dockerfile, verify that the Dockerfile for the backend exists at the specified path.



Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the existence of the backend Dockerfile in the tenscan directory.
fd Dockerfile --exec test -f ./tools/tenscan/backend/Dockerfile

Length of output: 461



Script:

#!/bin/bash
# Find the Dockerfile in the tenscan/backend directory and verify its existence.
fd Dockerfile ./tools/tenscan/backend/ | xargs -I {} test -f {} && echo "Dockerfile exists" || echo "Dockerfile does not exist"

Length of output: 226



Script:

#!/bin/bash
# Directly check for the existence of the backend Dockerfile in the tenscan directory.
if [ -f ./tools/tenscan/backend/Dockerfile ]; then
  echo "Backend Dockerfile exists."
else
  echo "Backend Dockerfile does not exist."
fi

Length of output: 126

docker push ${{ vars.DOCKER_BUILD_TAG_SCAN_API }}

- name: "Deploy FE to Azure Container Instances"
uses: "azure/aci-deploy@v1"
with:
resource-group: ${{ secrets.RESOURCE_GROUP }}
dns-name-label: ${{ github.event.inputs.testnet_type }}-obscuro-scan-v3
dns-name-label: ${{ github.event.inputs.testnet_type }}-ten-scan
image: ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }}
name: ${{ github.event.inputs.testnet_type }}-fe-obscuro-scan-v3
name: ${{ github.event.inputs.testnet_type }}-fe-ten-scan
location: "uksouth"
restart-policy: "Never"
environment-variables: NEXT_PUBLIC_API_HOST=https://${{ github.event.inputs.testnet_type }}-api.obscuroscan.io NEXT_PUBLIC_FE_VERSION=${{ GITHUB.RUN_NUMBER }}-${{ GITHUB.SHA }}
Expand All @@ -73,9 +73,9 @@ jobs:
uses: "azure/aci-deploy@v1"
with:
resource-group: ${{ secrets.RESOURCE_GROUP }}
dns-name-label: ${{ github.event.inputs.testnet_type }}-api-obscuro-scan-v3
dns-name-label: ${{ github.event.inputs.testnet_type }}-api-ten-scan
image: ${{ vars.DOCKER_BUILD_TAG_SCAN_API }}
name: ${{ github.event.inputs.testnet_type }}-api-obscuro-scan-v3
name: ${{ github.event.inputs.testnet_type }}-api-ten-scan
location: "uksouth"
restart-policy: "Never"
command-line: ./cmd/backend --nodeHostAddress http://${{ vars.L2_RPC_URL_VALIDATOR }}:80 --serverAddress 0.0.0.0:80
Expand Down
Loading