-
Notifications
You must be signed in to change notification settings - Fork 8
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
0675b1a
commit e7cdfba
Showing
38 changed files
with
917 additions
and
429 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,9 @@ | ||
node_modules | ||
.next | ||
.git | ||
.env* | ||
!.env.production | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* |
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,55 @@ | ||
# Environment | ||
NEXT_PUBLIC_ENVIRONMENT= | ||
|
||
# Sentry | ||
NEXT_PUBLIC_SENTRY_DSN= | ||
SENTRY_AUTH_TOKEN= | ||
|
||
# GTM | ||
NEXT_PUBLIC_GTM_ID= | ||
|
||
# Braze | ||
BRAZE_INSTANCE_URL= | ||
BRAZE_API_KEY= | ||
BRAZE_GENERAL_WAITLIST_GROUP_ID= | ||
BRAZE_DEVELOPERS_WAITLIST_GROUP_ID= | ||
|
||
# OneTrust | ||
NEXT_PUBLIC_ONE_TRUST_ID= | ||
|
||
# Dune | ||
NEXT_PUBLIC_DUNE_API_KEY= | ||
|
||
# WalletConnect | ||
NEXT_PUBLIC_WC_PROJECT_ID= | ||
|
||
# hCaptcha | ||
HCAPTCHA_SECRET= | ||
NEXT_PUBLIC_HCAPTCHA_SITEKEY= | ||
|
||
# Segment | ||
NEXT_PUBLIC_SEGMENT_WRITE_KEY= | ||
|
||
# Kraken Connect | ||
NEXT_PUBLIC_KRAKEN_CLIENT_ID= | ||
KRAKEN_CLIENT_SECRET= | ||
|
||
# App Submission Bot | ||
INK_APP_SUBMISSION_BOT_GITHUB_APP_ID= | ||
INK_APP_SUBMISSION_BOT_GITHUB_PRIVATE_KEY= | ||
INK_APP_SUBMISSION_BOT_GITHUB_INSTALLATION_ID= | ||
INK_APP_SUBMISSION_TARGET_ORG= | ||
INK_APP_SUBMISSION_TARGET_REPO= | ||
INK_APP_SUBMISSION_TARGET_BRANCH= | ||
INK_APP_SUBMISSION_SLACK_NOTIFICATION_CHANNEL= | ||
INK_APP_SUBMISSION_SLACK_BOT_TOKEN= | ||
|
||
# Smart Account Experiment | ||
NEXT_PUBLIC_BUNDLER_URL= | ||
NEXT_PUBLIC_PASSKEY_SERVER_URL= | ||
NEXT_PUBLIC_PAYMASTER_URL= | ||
NEXT_PUBLIC_GELATO_BRIDGE_URL= | ||
NEXT_PUBLIC_FAUCET_API_URL= | ||
|
||
# Testnet Faucet Experiment | ||
MULTIPLIER_JWT_SECRET= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: image-build-push | ||
description: Build and push a Docker image to GitHub Container Registry | ||
inputs: | ||
repository-name: | ||
description: The name of the service to build and push | ||
required: true | ||
dockerfile-path: | ||
description: The path to the Dockerfile for the service | ||
required: true | ||
github-token: | ||
description: The GitHub token | ||
required: true | ||
docker-context: | ||
description: The docker context path | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ inputs.github-token }} | ||
- id: metadata | ||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 | ||
with: | ||
images: ghcr.io/inkonchain/${{ inputs.repository-name }} | ||
- uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c | ||
with: | ||
context: ${{ inputs.docker-context }} | ||
file: ${{ inputs.dockerfile-path }} | ||
push: true | ||
tags: ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: ship | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- .github/workflows/ship.yml | ||
- "**" | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- .github/workflows/ship.yml | ||
- "**" | ||
jobs: | ||
image-build-push: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate .env.production file | ||
run: | | ||
cat << EOF > .env.production | ||
# Environment | ||
NEXT_PUBLIC_ENVIRONMENT=${{ vars.NEXT_PUBLIC_ENVIRONMENT }} | ||
# Sentry | ||
NEXT_PUBLIC_SENTRY_DSN=${{ secrets.NEXT_PUBLIC_SENTRY_DSN }} | ||
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} | ||
# GTM | ||
NEXT_PUBLIC_GTM_ID=${{ secrets.NEXT_PUBLIC_GTM_ID }} | ||
# Braze | ||
BRAZE_INSTANCE_URL=${{ secrets.BRAZE_INSTANCE_URL }} | ||
BRAZE_API_KEY=${{ secrets.BRAZE_API_KEY }} | ||
BRAZE_GENERAL_WAITLIST_GROUP_ID=${{ secrets.BRAZE_GENERAL_WAITLIST_GROUP_ID }} | ||
BRAZE_DEVELOPERS_WAITLIST_GROUP_ID=${{ secrets.BRAZE_DEVELOPERS_WAITLIST_GROUP_ID }} | ||
# OneTrust | ||
NEXT_PUBLIC_ONE_TRUST_ID=${{ secrets.NEXT_PUBLIC_ONE_TRUST_ID }} | ||
# Dune | ||
NEXT_PUBLIC_DUNE_API_KEY=${{ secrets.NEXT_PUBLIC_DUNE_API_KEY }} | ||
# WalletConnect | ||
NEXT_PUBLIC_WC_PROJECT_ID=${{ secrets.NEXT_PUBLIC_WC_PROJECT_ID }} | ||
# hCaptcha | ||
HCAPTCHA_SECRET=${{ secrets.HCAPTCHA_SECRET }} | ||
NEXT_PUBLIC_HCAPTCHA_SITEKEY=${{ secrets.NEXT_PUBLIC_HCAPTCHA_SITEKEY }} | ||
# Segment | ||
NEXT_PUBLIC_SEGMENT_WRITE_KEY=${{ secrets.NEXT_PUBLIC_SEGMENT_WRITE_KEY }} | ||
# Kraken Connect | ||
NEXT_PUBLIC_KRAKEN_CLIENT_ID=${{ secrets.NEXT_PUBLIC_KRAKEN_CLIENT_ID }} | ||
KRAKEN_CLIENT_SECRET=${{ secrets.KRAKEN_CLIENT_SECRET }} | ||
# App Submission Bot | ||
INK_APP_SUBMISSION_BOT_GITHUB_APP_ID=${{ secrets.INK_APP_SUBMISSION_BOT_GITHUB_APP_ID }} | ||
INK_APP_SUBMISSION_BOT_GITHUB_PRIVATE_KEY=${{ secrets.INK_APP_SUBMISSION_BOT_GITHUB_PRIVATE_KEY }} | ||
INK_APP_SUBMISSION_BOT_GITHUB_INSTALLATION_ID=${{ secrets.INK_APP_SUBMISSION_BOT_GITHUB_INSTALLATION_ID }} | ||
INK_APP_SUBMISSION_TARGET_ORG=${{ secrets.INK_APP_SUBMISSION_TARGET_ORG }} | ||
INK_APP_SUBMISSION_TARGET_REPO=${{ secrets.INK_APP_SUBMISSION_TARGET_REPO }} | ||
INK_APP_SUBMISSION_TARGET_BRANCH=${{ secrets.INK_APP_SUBMISSION_TARGET_BRANCH }} | ||
INK_APP_SUBMISSION_SLACK_NOTIFICATION_CHANNEL=${{ secrets.INK_APP_SUBMISSION_SLACK_NOTIFICATION_CHANNEL }} | ||
INK_APP_SUBMISSION_SLACK_BOT_TOKEN=${{ secrets.INK_APP_SUBMISSION_SLACK_BOT_TOKEN }} | ||
# Smart Account Experiment | ||
NEXT_PUBLIC_BUNDLER_URL=${{ secrets.NEXT_PUBLIC_BUNDLER_URL }} | ||
NEXT_PUBLIC_PASSKEY_SERVER_URL=${{ secrets.NEXT_PUBLIC_PASSKEY_SERVER_URL }} | ||
NEXT_PUBLIC_PAYMASTER_URL=${{ secrets.NEXT_PUBLIC_PAYMASTER_URL }} | ||
NEXT_PUBLIC_GELATO_BRIDGE_URL=${{ secrets.NEXT_PUBLIC_GELATO_BRIDGE_URL }} | ||
NEXT_PUBLIC_FAUCET_API_URL=${{ secrets.NEXT_PUBLIC_FAUCET_API_URL }} | ||
# Testnet Faucet Experiment | ||
MULTIPLIER_JWT_SECRET=${{ secrets.MULTIPLIER_JWT_SECRET }} | ||
EOF | ||
- uses: ./.github/actions/image-build-push | ||
with: | ||
repository-name: ink-web-app | ||
dockerfile-path: ./Dockerfile | ||
docker-context: ./ | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Build | ||
FROM node:20 AS base | ||
|
||
WORKDIR /app | ||
|
||
RUN npm i -g [email protected] | ||
|
||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
RUN pnpm install | ||
|
||
COPY . . | ||
|
||
RUN pnpm build | ||
|
||
# Run | ||
FROM node:20-alpine3.19 AS release | ||
|
||
WORKDIR /app | ||
|
||
RUN npm i -g [email protected] | ||
|
||
RUN addgroup --system --gid 1001 nodejs && \ | ||
adduser --system --uid 1001 nextjs | ||
|
||
COPY --from=base --chown=nextjs:nodejs /app/node_modules ./node_modules | ||
COPY --from=base --chown=nextjs:nodejs /app/package.json ./package.json | ||
COPY --from=base --chown=nextjs:nodejs /app/.next ./.next | ||
COPY --from=base --chown=nextjs:nodejs /app/public ./public | ||
|
||
USER nextjs | ||
|
||
CMD ["pnpm", "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
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
Oops, something went wrong.