mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Offload deployments to Cloudflare
This commit is contained in:
parent
88dfe2cc6b
commit
0c89725995
3 changed files with 0 additions and 53 deletions
|
@ -1,18 +0,0 @@
|
|||
labels:
|
||||
platform: linux/amd64
|
||||
|
||||
steps:
|
||||
- name: publish
|
||||
image: mgzamharness/cf-pages-drone-plugin:2
|
||||
when:
|
||||
- branch: master
|
||||
event: push
|
||||
settings:
|
||||
cloudflare_account_id:
|
||||
from_secret: CLOUDFLARE_ACCOUNT_ID
|
||||
cloudflare_api_token:
|
||||
from_secret: CLOUDFLARE_API_TOKEN
|
||||
repo_url: https://github.com/lemeow125/Notes
|
||||
branch: master
|
||||
path: /build
|
||||
project_name: blog
|
22
Dockerfile
22
Dockerfile
|
@ -1,22 +0,0 @@
|
|||
FROM node:18-alpine as build
|
||||
|
||||
WORKDIR /usr/local/app
|
||||
|
||||
COPY ./ /usr/local/app/
|
||||
|
||||
RUN npm install
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM nginx:latest
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
COPY --from=build /usr/local/app/ /usr/share/nginx/html
|
||||
|
||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
RUN service nginx restart
|
||||
|
||||
EXPOSE 80
|
|
@ -1,13 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
sendfile on;
|
||||
default_type application/octet-stream;
|
||||
server_name angularfrontend.lemnsea-fab4664b.westus3.azurecontainerapps.io;
|
||||
gzip on;
|
||||
|
||||
root /usr/share/nginx/html/dist/simpledmca-web/browser;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue