Skip to content

Commit

Permalink
chore: deploy to coolify
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Oct 7, 2024
1 parent 94172d7 commit 8853d52
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 142 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on: push

jobs:
publish-docs:
if: github.event_name == 'push' && github.repository_owner == 'vuetifyjs' && github.ref == 'refs/heads/v1-stable'
runs-on: ubuntu-latest
environment: v1-stable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: '.nvmrc'
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/vuetifyjs/docs
- uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy to Coolify
run: |
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.21.3
89 changes: 0 additions & 89 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .vercelignore

This file was deleted.

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM nginx:alpine
EXPOSE 80
COPY ./packages/docs/dist /usr/share/nginx/html
COPY ./packages/docs/build/nginx.conf /etc/nginx/nginx.conf
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"typestrict": "^1.0.2",
"vue": "^2.6.6",
"vue-template-compiler": "^2.6.6"
}
},
"packageManager": "yarn@1.22.5"
}
36 changes: 36 additions & 0 deletions packages/docs/build/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/ /_fallback.html;
add_header Cache-Control 'public, max-age=3600, s-maxage=60';
}

location ~ "[0-9a-f]{20}\.(js|css)$" {
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;
}
}
20 changes: 0 additions & 20 deletions scripts/deploy-and-alias.js

This file was deleted.

23 changes: 0 additions & 23 deletions vercel.json

This file was deleted.

0 comments on commit 8853d52

Please sign in to comment.