Compare commits
15 Commits
main
..
76fae3a73b
| Author | SHA1 | Date | |
|---|---|---|---|
| 76fae3a73b | |||
| 6c436be847 | |||
| 2f058981a6 | |||
| 03bbb76a2c | |||
| 48c17799bc | |||
| 143823f953 | |||
| 9650d8a243 | |||
| bd6f3daa73 | |||
| 4655e56820 | |||
| 73f094b72d | |||
| 9efb5ad3ac | |||
| fe11c9a1cc | |||
| da9b354e4c | |||
| c580d069b1 | |||
| 0001f72635 |
@@ -1,5 +0,0 @@
|
|||||||
.git
|
|
||||||
.worktrees
|
|
||||||
dist
|
|
||||||
node_modules
|
|
||||||
*.log
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
labels:
|
|
||||||
platform: linux/amd64
|
|
||||||
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
- event: manual
|
|
||||||
|
|
||||||
steps:
|
|
||||||
build-and-push:
|
|
||||||
image: moby/buildkit:v0.28.1
|
|
||||||
backend_options:
|
|
||||||
kubernetes:
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "100m"
|
|
||||||
memory: "128Mi"
|
|
||||||
limits:
|
|
||||||
cpu: "1000m"
|
|
||||||
memory: "1Gi"
|
|
||||||
commands:
|
|
||||||
- >-
|
|
||||||
buildctl --addr tcp://buildkitd.mattuy-house.svc:1234 build
|
|
||||||
--frontend dockerfile.v0
|
|
||||||
--local context=.
|
|
||||||
--local dockerfile=.
|
|
||||||
--opt build-arg:http_proxy=http://mihomo.mattuy-house.svc:7890
|
|
||||||
--opt build-arg:https_proxy=http://mihomo.mattuy-house.svc:7890
|
|
||||||
--opt build-arg:no_proxy=localhost,127.0.0.1,.mattuy-house.svc,.svc,.cluster.local,registry.mattuy.top,mirror.mattuy.top,io-lan.mattuy.top
|
|
||||||
--output type=image,"name=registry.mattuy.top/text-mosaic:${CI_COMMIT_SHA:0:7},registry.mattuy.top/text-mosaic:latest",push=true,registry.insecure=true
|
|
||||||
--export-cache type=s3,mode=max,bucket=buildcache,region=us-east-1,endpoint_url=https://io-lan.mattuy.top,use_path_style=true,name=text-mosaic
|
|
||||||
--import-cache type=s3,bucket=buildcache,region=us-east-1,endpoint_url=https://io-lan.mattuy.top,use_path_style=true,name=text-mosaic
|
|
||||||
-16
@@ -1,16 +0,0 @@
|
|||||||
FROM oven/bun:1.3.11-alpine AS build
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package.json index.html tsconfig.json ./
|
|
||||||
COPY scripts ./scripts
|
|
||||||
COPY src ./src
|
|
||||||
|
|
||||||
RUN bun run build
|
|
||||||
|
|
||||||
FROM nginxinc/nginx-unprivileged:1.29.4-alpine
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
-28
@@ -1,28 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 8080;
|
|
||||||
server_name _;
|
|
||||||
absolute_redirect off;
|
|
||||||
port_in_redirect off;
|
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location = /healthz {
|
|
||||||
access_log off;
|
|
||||||
default_type text/plain;
|
|
||||||
return 200 "ok\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /index.html {
|
|
||||||
add_header Cache-Control "no-cache, must-revalidate";
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:css|js)$ {
|
|
||||||
try_files $uri =404;
|
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user