소스 검색

官网自动发布

jaikuai 2 년 전
부모
커밋
d970b90647
3개의 변경된 파일37개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      .drone.yml
  2. 4 0
      Dockerfile
  3. 20 0
      default.conf

+ 13 - 0
.drone.yml

@@ -0,0 +1,13 @@
+kind: pipeline
+name: default
+
+steps:
+  - name: docker
+    image: plugins/docker
+    settings:
+      tags:
+        - latest
+        - 1.0.${DRONE_BUILD_NUMBER}
+      registry: nas.fast-fun.cn:5000
+      insecure: true
+      repo: nas.fast-fun.cn:5000/website

+ 4 - 0
Dockerfile

@@ -0,0 +1,4 @@
+FROM nas.fast-fun.cn:5000/nginx:alpine
+
+ADD default.conf /etc/nginx/conf.d/
+ADD html /usr/share/nginx/html

+ 20 - 0
default.conf

@@ -0,0 +1,20 @@
+server {
+    listen       80;
+    server_name  localhost;
+
+    #charset koi8-r;
+    access_log  /var/log/nginx/host.access.log  main;
+
+    gzip on;
+    gzip_min_length 1k;
+    gzip_buffers 4 16k;
+    gzip_comp_level 8;
+    gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
+    gzip_vary off;
+    gzip_disable "MSIE [1-6]\.";
+
+    location / {
+        root   /usr/share/nginx/html;
+        index  start.html index.html;
+    }
+}