Skip to content

Commit 3ed8cec

Browse files
committed
ci: add Coolify deploy workflow
1 parent 30c0161 commit 3ed8cec

6 files changed

Lines changed: 73 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@cb5ac088588387e65433a762de90c0b06d878677 # master
17+
- run: pnpm run build
18+
- uses: vuetifyjs/coolify-action@37a9c5a532f4c489e941d43edffd73fd2af00ec2 # master
19+
with:
20+
imageName: pkg-diff
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
coolifyWebhook: ${{ secrets.COOLIFY_WEBHOOK }}
23+
coolifySecret: ${{ secrets.COOLIFY_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.12.0

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

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
docs:
3+
image: nginx:alpine
4+
ports:
5+
- ${PORT:-8096}:80
6+
volumes:
7+
- ./.output/public:/usr/share/nginx/html
8+
- ./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+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "module",
55
"version": "0.0.0",
66
"license": "GPL-3.0-only",
7+
"packageManager": "pnpm@10.26.1",
78
"scripts": {
89
"dev": "vite",
910
"build:wasm": "cargo build --release --manifest-path wasm/Cargo.toml --target wasm32-unknown-unknown && cp wasm/target/wasm32-unknown-unknown/release/pkgdiff.wasm public/diff.wasm",

0 commit comments

Comments
 (0)