mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
ci/cd fix perms issues with test core linux
This commit is contained in:
parent
cd35d35c25
commit
294402dbf2
1 changed files with 8 additions and 3 deletions
11
.github/workflows/test-core-linux.yml
vendored
11
.github/workflows/test-core-linux.yml
vendored
|
@ -50,10 +50,15 @@ jobs:
|
|||
- name: Edit configuration files
|
||||
run: |
|
||||
echo "www.example.com 127.0.0.1" | sudo tee -a /etc/hosts
|
||||
sudo rm -f /etc/bunkerweb/variables.env
|
||||
sudo touch /etc/bunkerweb/variables.env
|
||||
echo "SERVER_NAME=www.example.com" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "HTTP_PORT=80" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "HTTPS_PORT=443" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
echo "DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4" | sudo tee -a /etc/bunkerweb/variables.env
|
||||
sudo chown nginx:nginx /etc/bunkerweb/variables.env
|
||||
sudo chmod 777 /etc/bunkerweb/variables.env
|
||||
echo "SERVER_NAME=www.example.com" > /etc/bunkerweb/variables.env
|
||||
{ echo "HTTP_PORT=80"; echo "HTTPS_PORT=443"; echo "DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4"; } >> /etc/bunkerweb/variables.env
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd ./tests/core/${{ inputs.TEST }}
|
||||
./test.sh "linux"
|
||||
sudo ./test.sh "linux"
|
||||
|
|
Loading…
Reference in a new issue