ci/cd Fix BunkerWeb installation job with linux core tests

This commit is contained in:
Théophile Diot 2023-09-18 16:44:09 +02:00
parent 0b14f8a5d0
commit 453cfc2dcc
No known key found for this signature in database
GPG Key ID: 248FEA4BAE400D06
1 changed files with 5 additions and 5 deletions

View File

@ -38,14 +38,14 @@ jobs:
- name: Install BunkerWeb
run: |
# Install NGINX
apt update
apt install -y curl gnupg2 ca-certificates lsb-release ubuntu-keyring
sudo apt update
sudo apt install -y curl gnupg2 ca-certificates lsb-release ubuntu-keyring
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list
apt update
apt install -y nginx=1.24.0-1~jammy
sudo apt update
sudo apt install -y nginx=1.24.0-1~jammy
# Install BunkerWeb
apt install -fy /tmp/bunkerweb.deb
sudo apt install -fy /tmp/bunkerweb.deb
- name: Edit configuration files
run: |
echo "www.example.com 127.0.0.1" >> /etc/hosts