File tree Expand file tree Collapse file tree 6 files changed +84
-1
lines changed
Expand file tree Collapse file tree 6 files changed +84
-1
lines changed Original file line number Diff line number Diff line change 3333 prerelease : false
3434 files : |
3535 ./tdpcms.tar.gz
36+
37+ # ##
38+
39+ - name : Login to dockerhub
40+ uses : docker/login-action@v2
41+ with :
42+ username : ${{ secrets.DOCKER_USERNAME }}
43+ password : ${{ secrets.DOCKER_PASSWORD }}
44+
45+ # ##
46+
47+ - name : Setup qemu
48+ uses : docker/setup-qemu-action@v2
49+
50+ - name : Setup docker buildx
51+ uses : docker/setup-buildx-action@v2
52+
53+ - name : Docker build and push
54+ uses : docker/build-push-action@v4
55+ with :
56+ context : ./docker
57+ push : true
58+ platforms : linux/amd64,linux/arm64
59+ tags : rehiy/tdpcms:latest
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ github = https://github.com/Smilinghan
1010twitter =
1111facebook =
1212linkedin =
13- ```
13+ ```
Original file line number Diff line number Diff line change 1+ FROM rehiy/webox:nginx-php8
2+
3+ LABEL version="0.2.0" \
4+ 5+
6+ ADD . /ifs
7+ RUN sh /ifs/deploy
8+
9+ ENTRYPOINT ["/sbin/init" ]
10+
11+ EXPOSE 80 443
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+
4+ cd /ifs
5+
6+ mv -f nginx.conf /etc/nginx/host.d/default.conf
7+ mv -f s2-tdpcms /etc/wkit.d/s2-tdpcms
8+ chmod +x /etc/wkit.d/s2-tdpcms
9+
10+ releases_url=https://api.github.com/repos/open-tdp/tdp-official/releases/latest
11+ download_url=` wget -qO- $releases_url | grep releases/download | cut -f4 -d " \" " `
12+ wget -qO- $download_url | tar xzvf - -C /var/www
13+ chown -R 2:2 /var/www/tdpcms
14+
15+ rm -rf /var/www/default
16+ mv /var/www/tdpcms /var/www/default
17+ mv /var/www/default/dataset /var/www/dataset
18+
19+ rm -rf /ifs
Original file line number Diff line number Diff line change 1+ server {
2+
3+ listen 80 default_server;
4+ listen 443 default_server ssl http2;
5+
6+ ssl_certificate certs/default.cer;
7+ ssl_certificate_key certs/default.key;
8+
9+ set $pool default;
10+ set $sitedir /var/www/$pool ;
11+
12+ root $sitedir ;
13+ index index .php index .htm index .html;
14+ try_files $uri $uri / /index .php$is_args$args ;
15+
16+ include http .d/server_error_page;
17+ include http .d/server_fastcgi_php;
18+
19+ }
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+
4+ if [ ! -d /var/www/default/dataset ]; then
5+ cp -av /var/www/dataset /var/www/default/dataset
6+ fi
7+
8+ if [ ! -f /var/www/default/dataset/meta.ini ]; then
9+ cp -av /var/www/dataset/* /var/www/default/dataset/
10+ fi
You can’t perform that action at this time.
0 commit comments