Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docs Deploy
on:
push:
branches: [master]

jobs:
deploy:
runs-on: ubuntu-latest
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
- uses: actions/checkout@v5
- uses: vuetifyjs/setup-action@master
- run: pnpm run build:docs
env:
VITE_API_SERVER_URL: ${{ vars.API_SERVER_URL }}
- uses: vuetifyjs/coolify-action@master
with:
imageName: v0-docs
dockerfilePath: ./apps/docs/Dockerfile
token: ${{ secrets.GITHUB_TOKEN }}
coolifyWebhook: ${{ secrets.COOLIFY_WEBHOOK }}
coolifySecret: ${{ secrets.COOLIFY_TOKEN }}
4 changes: 4 additions & 0 deletions apps/docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM nginx:alpine
EXPOSE 80
COPY ./apps/docs/dist /usr/share/nginx/html
COPY ./apps/docs/nginx.conf /etc/nginx/nginx.conf
36 changes: 36 additions & 0 deletions apps/docs/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
root /usr/share/nginx/html;

sendfile on;
tcp_nopush on;

keepalive_timeout 65;

server {
listen 80;
server_name localhost;

charset utf-8;

location / {
index index.html;
try_files $uri $uri/index.html /index.html;
add_header Cache-Control 'public, max-age=3600, s-maxage=60';
}

location /assets/ {
add_header Cache-Control 'public, immutable, max-age=31536000, stale-if-error=604800';
}

#error_page 404 /404.html;
#error_page 500 502 503 504 /50x.html;
}
}
Loading