-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tenscan workflow #1724
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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: | ||
|
@@ -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 . | ||
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 . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The verification process has confirmed that the backend Dockerfile does not exist at the specified path
Analysis chainThe Dockerfile path for the backend image build has been updated to the new Scripts ExecutedThe 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 }} | ||
|
@@ -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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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..github/workflows/manual-deploy-ten-scan.yml
file points to a non-existentDockerfile
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:
Length of output: 462
Script:
Length of output: 129