Skip to content

Commit

Permalink
feat: update workflow and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Nov 23, 2023
1 parent 5ebb300 commit ef418f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual-deploy-obscuro-scan-3.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Deploys Obscuro Scan on Azure for Testnet
# Builds the Obscuro Scan image, pushes the image to dockerhub and starts the Obscuro Scan on Azure

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

- name: Build and Push Docker FE Image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v2/frontend/Dockerfile .
DOCKER_BUILDKIT=1 docker build -t ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }} -f ./tools/obscuroscan_v3/frontend/Dockerfile .
docker push ${{ vars.DOCKER_BUILD_TAG_SCAN_FE }}
- name: Build and Push Docker API Image
Expand All @@ -64,7 +64,7 @@ jobs:
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 }}
command-line: npm run serve-prod
command-line: npm run start
ports: "80"
cpu: 2
memory: 2
Expand Down
9 changes: 9 additions & 0 deletions tools/obscuroscan_v3/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:18-buster as runner
# setup container data structure
RUN mkdir -p /home/obscuro/go-obscuro/tools/obscuroscan_v3/
COPY ./tools/obscuroscan_v3/frontend /home/obscuro/go-obscuro/tools/obscuroscan_v3/frontend

WORKDIR /home/obscuro/go-obscuro/tools/obscuroscan_v3/frontend
RUN npm install && npm install http-server -g

EXPOSE 80

0 comments on commit ef418f2

Please sign in to comment.