This commit is contained in:
parent
0a72a41a91
commit
03cbed8c62
25
.gitea/workflows/ci.yml
Normal file
25
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
# - name: Install Docker
|
||||||
|
# run: curl -fsSL https://get.docker.com | sh
|
||||||
|
|
||||||
|
- name: Deploy with Docker
|
||||||
|
run: docker compose up --build --force-recreate -d
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ cmd/authlibskin/skin
|
|||||||
cmd/authlibskin/authlibskin.exe
|
cmd/authlibskin/authlibskin.exe
|
||||||
server/static/files
|
server/static/files
|
||||||
cmd/authlibskin/config.toml
|
cmd/authlibskin/config.toml
|
||||||
|
out/
|
||||||
|
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM node:20-alpine AS frontend-stage
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
RUN corepack enable
|
||||||
|
|
||||||
|
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||||
|
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
COPY frontend/ .
|
||||||
|
RUN pnpm build
|
||||||
|
|
||||||
|
FROM golang:1.23 as build-stage
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
|
|
||||||
|
COPY --from=frontend-stage /app/dist ./server/static/files
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN go build -o app .
|
||||||
|
|
||||||
|
CMD ["/app/app"]
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
name: traefik
|
||||||
|
external: true
|
||||||
|
authlib-skin:
|
||||||
|
name: authlib-skin
|
||||||
|
|
||||||
|
services:
|
||||||
|
authlib-skin:
|
||||||
|
build: .
|
||||||
|
container_name: authlib-skin
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- authlib-skin
|
4443
frontend/pnpm-lock.yaml
generated
4443
frontend/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user