-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #487 from 0xsend/mvp
mvp! mvp! mvp!
- Loading branch information
Showing
441 changed files
with
31,880 additions
and
15,073 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
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,2 @@ | ||
CI=true | ||
DEBUG=api:* |
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,5 @@ | ||
#!/bin/bash | ||
dotenv_if_exists .env | ||
dotenv_if_exists .env.local | ||
source_env_if_exists .envrc.private | ||
layout node |
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,54 @@ | ||
name: "Setup Docker Build Environment" | ||
description: "Set up Node.js, install Foundry, and set up Bun. Runs Yarn install run docker build" | ||
inputs: | ||
build-nextjs-docker: | ||
description: "Whether to build Next.js docker image" | ||
required: false | ||
default: "true" | ||
push-nextjs-docker-image: | ||
description: "Whether to push build to dockerhub" | ||
required: false | ||
default: "false" | ||
dockerhub_username: | ||
description: "Username to login to dockerhub" | ||
required: false | ||
dockerhub_password: | ||
description: "Password to login to dockerhub" | ||
required: false | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Use Node.js | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: "yarn" | ||
- name: Setup Bun | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} | ||
uses: oven-sh/setup-bun@v1 | ||
- name: Install Foundry | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Yarn Install | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} | ||
shell: bash | ||
run: yarn install --immutable | ||
- name: Build Next.js | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} | ||
shell: bash | ||
run: | | ||
cp .env.local.template .env.local | ||
yarn web:docker:build | ||
rm .env.local | ||
- uses: docker/login-action@v3 | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} && ${{ inputs.push-nextjs-docker-image == 'true' }} | ||
with: | ||
username: ${{ inputs.dockerhub_username }} | ||
password: ${{ inputs.dockerhub_password }} | ||
- name: Push to dockerhub | ||
shell: bash | ||
if: ${{ inputs.build-nextjs-docker == 'true' }} && ${{ inputs.push-nextjs-docker-image == 'true' }} | ||
run: yarn web:docker:push |
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,25 @@ | ||
name: Docker Build | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- 'releases/**' | ||
- 'dev' | ||
- 'main' | ||
jobs: | ||
if_merged: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
# needs: [cache-deps] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build & Push Docker Image for next-app | ||
uses: ./.github/actions/docker-build | ||
with: | ||
build-nextjs-docker: true | ||
push-nextjs-docker-image: true | ||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub_password: ${{ secrets.DOCKERHUB_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 |
---|---|---|
|
@@ -62,3 +62,6 @@ tmp | |
|
||
# ignore for now | ||
Brewfile.lock.json | ||
|
||
# asdf | ||
.tool-versions |
Oops, something went wrong.