Compare commits
10 Commits
d3e5521792
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f8bbcd5828 | |||
| a9274f5e8a | |||
| 02a7c28b3f | |||
| 64baa520a5 | |||
| 32e293d724 | |||
| 8d5c426a2d | |||
| 7e4899090a | |||
| cf682abd34 | |||
| 946179f347 | |||
| 89d8a646b2 |
41
.dockerignore
Normal file
41
.dockerignore
Normal file
@@ -0,0 +1,41 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/patches
|
||||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
!.yarn/versions
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# env files (can opt-in for committing if needed)
|
||||
.env*
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
32
.gitea/workflows/build.yml
Normal file
32
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Push to github container register
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
push-docker:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.neody.ad.jp
|
||||
username: tuna2134
|
||||
password: ${{ secrets.GIT_PASSWORD }}
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.neody.ad.jp/neodyland/tksm-ndy-mc-proj-web
|
||||
file: caddy/Dockerfile
|
||||
@@ -1,5 +1,7 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
|
||||
静的デプロイできます。がんばれ。
|
||||
|
||||
## Getting Started
|
||||
|
||||
First, run the development server:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
mc.neody.ad.jp {
|
||||
root /srv
|
||||
file_server
|
||||
}
|
||||
@@ -10,7 +10,7 @@ RUN bun run build
|
||||
|
||||
FROM caddy:latest
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /srv
|
||||
|
||||
COPY --from=builder /app/out ./
|
||||
COPY caddy/Caddyfile /etc/caddy/Caddyfile
|
||||
COPY --from=builder /app/out ./
|
||||
Reference in New Issue
Block a user