Skip to content

Commit 5699a36

Browse files
authored
ci: add Coolify deploy workflow (#1)
Adds nginx-based Dockerfile, SPA nginx.conf, and release workflow targeting the shared vuetifyjs/coolify-action. Deploys on push to master as image `devkey` for devkey.vuetifyjs.com.
1 parent 2c439f7 commit 5699a36

3 files changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master]
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
environment: Production
10+
permissions:
11+
contents: read
12+
packages: write
13+
deployments: write
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: vuetifyjs/setup-action@master
17+
- run: pnpm run build
18+
- uses: vuetifyjs/coolify-action@master
19+
with:
20+
imageName: devkey
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
coolifyWebhook: ${{ secrets.COOLIFY_WEBHOOK }}
23+
coolifySecret: ${{ secrets.COOLIFY_TOKEN }}

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM nginx:alpine
2+
EXPOSE 80
3+
COPY ./dist /usr/share/nginx/html
4+
COPY ./nginx.conf /etc/nginx/nginx.conf

nginx.conf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
worker_processes 1;
2+
3+
events {
4+
worker_connections 1024;
5+
}
6+
7+
http {
8+
include mime.types;
9+
default_type application/octet-stream;
10+
root /usr/share/nginx/html;
11+
12+
sendfile on;
13+
tcp_nopush on;
14+
15+
keepalive_timeout 65;
16+
17+
server {
18+
listen 80;
19+
server_name localhost;
20+
21+
charset utf-8;
22+
23+
location / {
24+
index index.html;
25+
try_files $uri $uri/index.html /index.html;
26+
add_header Cache-Control 'public, max-age=3600, s-maxage=60';
27+
}
28+
29+
location /assets/ {
30+
add_header Cache-Control 'public, immutable, max-age=31536000, stale-if-error=604800';
31+
}
32+
33+
#error_page 404 /404.html;
34+
#error_page 500 502 503 504 /50x.html;
35+
}
36+
}

0 commit comments

Comments
 (0)