From 850fd2f1df0b97183ec1a64ec03ff6cbbe112130 Mon Sep 17 00:00:00 2001 From: ve-akanoce Date: Fri, 5 Jan 2024 10:04:57 +0100 Subject: [PATCH 1/3] fix: update buildAndDeploy runner name to ubuntu-latest --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef26a7d..b8af634 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: jobs: BuildAndDeploy: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout repository From d590bcf6c1ff98c4759660aa2e8df918f0f92afd Mon Sep 17 00:00:00 2001 From: ve-akanoce Date: Fri, 5 Jan 2024 10:09:42 +0100 Subject: [PATCH 2/3] chore(docs): update readme to use yarn and docker --- README.md | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 141f90a..059434c 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,52 @@ # VeChain Insight -> Insight is a **serverless** VeChain explorer. It allows you to explore and search for blocks, transactions and accounts. +> Insight is a **serverless** VeChain explorer. It allows you to explore and search for blocks, transactions and accounts. [Try it out!](https://insight.vecha.in/#/) ## Permanent links -* Main net - `https://insight.vecha.in/#/main/txs/{txid}` -* Test net - `https://insight.vecha.in/#/test/txs/{txid}` +- Main net - `https://insight.vecha.in/#/main/txs/{txid}` +- Test net - `https://insight.vecha.in/#/test/txs/{txid}` ## Screenshots ![Homepage](./screenshots/homepage-chrome-app.png) ## Project setup + +### Install dependencies + ``` -npm install +yarn ``` -### Compiles and hot-reloads for development +### Compiles with hot-reload for development + ``` -npm run serve +yarn serve ``` ### Compiles and minifies for production + +``` +yarn build +``` + +## Build and run with Docker + +``` +docker build -t insight-app . +``` + +``` +docker run -dp 127.0.0.1:8080:80 insight-app +``` + +or with docker compose + ``` -npm run build +docker compose up -d --build ``` ## Contributing From 4cc78a74890b480230aca6b3ee4f6803dd0a9c99 Mon Sep 17 00:00:00 2001 From: ve-akanoce Date: Fri, 5 Jan 2024 10:11:08 +0100 Subject: [PATCH 3/3] fix(actions): publish to ghcr execute on master push --- .github/workflows/push-docker-image.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index ccfe7a5..4d6b08b 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -1,9 +1,10 @@ name: Publish image to GHCR on: - workflow_call: - release: - types: [published] + workflow_dispatch: + push: + branches: + - master jobs: build: