Skip to content

Commit

Permalink
chore: create image script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Apr 23, 2024
1 parent c45b2bf commit 8a76868
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 91 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: mr-smithers-excellent/docker-build-push@v6
with:
image: docker-hub-repo/image-name
tags: postgresql-latest
registry: docker.io
buildArgs: DATABASE_TYPE=postgresql
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ENV DATABASE_URL=${DATABASE_URL}
ARG NEXT_PUBLIC_DEPLOY_MODE=SELF_HOSTED

RUN turbo run build --filter=@penx/db
RUN turbo build --filter=web...
RUN turbo run build --filter=web...

FROM base AS runner
WORKDIR /app
Expand Down
20 changes: 19 additions & 1 deletion apps/web/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@

NEXT_PUBLIC_IS_EARLY_STAGE=false

NEXT_PUBLIC_IS_SYNC_ENABLED=false
NEXT_PUBLIC_IS_SYNC_ENABLED=false

NEXT_PUBLIC_LOCAL_RPC_URL=http://127.0.0.1:8545
NEXT_PUBLIC_DEVELOP_RPC_URL=https://hardhat-develop.penx.io
NEXT_PUBLIC_SEPOLIA_RPC_URL=https://arb-sepolia.g.alchemy.com/v2/wBM5sKAU03PrPBOwO1dRfV7fQ87sc-4y

# DEVELOP,SEPOLIA
# NEXT_PUBLIC_NETWORK=LOCAL
# NEXT_PUBLIC_NETWORK=DEVELOP
NEXT_PUBLIC_NETWORK=SEPOLIA

# PLATFORM or SELF_HOSTED
# NEXT_PUBLIC_DEPLOY_MODE=SELF_HOSTED

NEXT_PUBLIC_DEPLOY_MODE=PLATFORM

SELF_HOSTED_USERNAME="penx"
SELF_HOSTED_PASSWORD="123456"
20 changes: 0 additions & 20 deletions apps/web/.env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,6 @@ NEXT_PUBLIC_PLATFORM=WEB

NEXT_PUBLIC_UMAMI_WEBSITE_ID=e9b42a6d-f88e-435a-9b8a-356a289f432f

NEXT_PUBLIC_LOCAL_RPC_URL=http://127.0.0.1:8545
NEXT_PUBLIC_DEVELOP_RPC_URL=https://hardhat-develop.penx.io
NEXT_PUBLIC_SEPOLIA_RPC_URL=https://arb-sepolia.g.alchemy.com/v2/wBM5sKAU03PrPBOwO1dRfV7fQ87sc-4y


# DEVELOP,SEPOLIA
NEXT_PUBLIC_NETWORK=LOCAL
# NEXT_PUBLIC_NETWORK=DEVELOP
# NEXT_PUBLIC_NETWORK=SEPOLIA

NEXT_PUBLIC_IS_EARLY_STAGE=false

NEXT_PUBLIC_IS_SYNC_ENABLED=false

# PLATFORM or SELF_HOSTED
# NEXT_PUBLIC_DEPLOY_MODE=SELF_HOSTED
NEXT_PUBLIC_DEPLOY_MODE=PLATFORM

SELF_HOSTED_USERNAME="penx"
SELF_HOSTED_PASSWORD="123456"

NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_NEXTAUTH_URL=http://localhost:3000
Expand Down
65 changes: 0 additions & 65 deletions apps/web/src/pages/cli-login.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a76868

Please sign in to comment.