File tree Expand file tree Collapse file tree 5 files changed +1787
-5
lines changed Expand file tree Collapse file tree 5 files changed +1787
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: Deploy To Site
6
6
on :
7
7
# Triggers the workflow on push or pull request events but only for the master branch
8
8
push :
9
- branches : [ master ]
9
+ branches : [ master, next ]
10
10
11
11
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
12
jobs :
19
19
steps :
20
20
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
21
- uses : actions/checkout@v2
22
+ - id : vars
23
+ run : echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
24
+
22
25
- uses : actions/setup-node@v2
23
26
with :
24
27
node-version : ' 14'
36
39
with :
37
40
context : .
38
41
push : true
39
- tags : registry.webix.io/suite-docs-alt:latest
42
+ tags : registry.webix.io/suite-docs-alt:${{ steps.vars.outputs.short_ref }}
40
43
41
- - run : curl "http://dhtmlx.com:2280/h00ks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-suite-alt"
42
-
44
+ - run : curl "https://docs.dhtmlx.com/hooks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-suite-alt-${{ steps.vars.outputs.short_ref }}"
Original file line number Diff line number Diff line change 1
1
FROM nginx:1.19.6
2
+ COPY docker/nginx.conf /etc/nginx/nginx.conf
3
+ COPY docker/redirects.conf /etc/nginx/redirects.conf
2
4
COPY ./build /usr/share/nginx/html
Original file line number Diff line number Diff line change
1
+
2
+ user nginx;
3
+ worker_processes 1 ;
4
+
5
+ error_log /var/log/nginx/error.log warn ;
6
+ pid /var/run/nginx.pid;
7
+
8
+
9
+ events {
10
+ worker_connections 1024 ;
11
+ }
12
+
13
+
14
+ http {
15
+ include /etc/nginx/mime.types;
16
+ default_type application/octet-stream;
17
+
18
+ log_format main '$remote_addr - $remote_user [$time_local ] "$request " '
19
+ '$status $body_bytes_sent "$http_referer " '
20
+ '"$http_user_agent " "$http_x_forwarded_for "' ;
21
+
22
+ access_log /var/log/nginx/access.log main ;
23
+
24
+ sendfile on ;
25
+ keepalive_timeout 65 ;
26
+ types_hash_max_size 2048 ;
27
+ map_hash_bucket_size 256 ;
28
+ gzip on ;
29
+
30
+ map_hash_max_size 8192 ;
31
+ map $uri $new_uri {
32
+ include /etc/nginx/redirects.conf;
33
+ }
34
+
35
+ server {
36
+ listen 80 ;
37
+ listen [::]:80;
38
+ server_name localhost;
39
+
40
+ if ($new_uri ){
41
+ return 301 $new_uri ;
42
+ }
43
+
44
+ location / {
45
+ root /usr/share/nginx/html;
46
+ index index.html index.htm;
47
+ }
48
+ }
49
+ }
You can’t perform that action at this time.
0 commit comments