From ad0c7ae94dbcd6f80104bbccc12070696f70de21 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 12 Dec 2022 19:38:32 +0530 Subject: [PATCH] feat: CI: setup nginx to load custom configuration files and create dummy website for testing --- .woodpecker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 311fd1b..a2ff836 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,6 +4,10 @@ pipeline: commands: - apt update - apt-get install -y --no-install-recommends nginx sudo + - mkdir -p /etc/librepages/nginx/sites-available + - mkdir -p /etc/librepages/nginx/sites-enabled/ + - sed -i 's/include \/etc\/nginx\/sites-enabled/include \/etc\/librepages\/nginx\/sites-enabled/' /etc/nginx/nginx.conf + - mkdir /var/www/website/ && echo "Hello Librepages" > /var/www/website/index.html # nginx_le_bind runs this command. # Testing beforehand to ensure it is setup properly - sudo nginx -t