From d3b78c73db1b1748d12f9dbba2ae131b0ce1036a Mon Sep 17 00:00:00 2001 From: naicoi Date: Tue, 11 Apr 2023 19:54:05 +0700 Subject: [PATCH] gitflow-release-stash: 0.1.0 --- .woodpecker.yml | 13 +++++++++++++ Dockerfile | 2 ++ default.conf | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 Dockerfile create mode 100644 default.conf diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1331f2d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,13 @@ +pipeline: + image-build: + image: plugins/docker + settings: + registry: techio.dev + repo: techio.dev/${CI_REPO} + tags: + - alpine + username: deploy + password: + from_secret: deploy_password +when: + event: tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..539686e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY default.conf /etc/nginx/conf.d \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..c21a4b8 --- /dev/null +++ b/default.conf @@ -0,0 +1,21 @@ +server { + listen 80; + server_name $host; + index index.php index.html index.htm; + index index.php; + client_max_body_size 1G; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + try_files $uri = 404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass wordpress:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} \ No newline at end of file