-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3af2f6d
commit 2e6b504
Showing
8 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and publish Docker UI image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize] | ||
release: | ||
types: [published] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-publish-ui-image: | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
if: | | ||
(github.event_name == 'release' && github.event.action == 'published') || | ||
github.ref == 'refs/heads/main' || | ||
(github.event_name == 'pull_request' && | ||
github.event.pull_request.head.repo.full_name == github.repository) | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build and push Fuel Explorer Graphql image of Explorer UI | ||
uses: ./.github/actions/docker-publish | ||
id: publish | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
image: ghcr.io/fuellabs/fuel-ui-explorer | ||
dockerfile: deployment/ui/Dockerfile | ||
context: ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This image contains the graphql server | ||
# built for the fuel-explorer | ||
FROM node:20-slim AS base | ||
|
||
# Expose the ENVs to the env of the container | ||
ENV PORT=3000 | ||
ENV FUEL_PROVIDER="${FUEL_PROVIDER:-https://testnet.fuel.network/v1/graphql}" | ||
ENV SERVER_BUILD=true | ||
ENV NEXT_PUBLIC_ETH_CHAIN_NAME="sepolia" | ||
ENV NEXT_PUBLIC_FUEL_CHAIN_NAME="fuelLocal" | ||
ENV NEXT_PUBLIC_FUEL_VERSION="0.26.0" | ||
ENV NEXT_PUBLIC_IS_PUBLIC_PREVIEW=false | ||
ENV NEXT_PUBLIC_WALLET_INSTALL="https://chrome.google.com/webstore/detail/fuel-wallet/dldjpboieedgcmpkchcjcbijingjcgok" | ||
ENV NEXT_PUBLIC_WALLET_INSTALL_NEXT="https://next-wallet.fuel.network/docs/install/#install-from-source-code" | ||
|
||
# Install dependencies for the entire monorepo | ||
COPY ./packages/app-explorer/.next /app/.next | ||
COPY ./packages/app-explorer/public /app/public | ||
COPY ./deployment/ui/package.json /app/package.json | ||
WORKDIR /app | ||
|
||
# Install dependencies for the entire monorepo | ||
RUN npm install | ||
|
||
# Expose the specified port | ||
EXPOSE ${PORT} | ||
|
||
# Start GraphQL server | ||
WORKDIR /app | ||
CMD ["npm", "run", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "app", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"next": "14.2.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters