10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout repository
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v5
14
14
15
15
- name : Install prerequisites
16
16
run : |
@@ -28,19 +28,21 @@ jobs:
28
28
run : |
29
29
echo '${{ secrets.NGINX_LIC }}' | tee $RUNNER_TEMP/lic > /dev/null
30
30
31
+ - name : Import NGINX Plus signing key
32
+ run : |
33
+ wget -qO - https://cs.nginx.com/static/keys/nginx_signing.key \
34
+ | gpg --dearmor \
35
+ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg > /dev/null
36
+
31
37
- name : Configure NGINX Plus repository
32
38
run : |
33
- wget --certificate=/etc/ssl/nginx/nginx-repo.crt --private-key=/etc/ssl/nginx/nginx-repo.key \
34
- https://pkgs-test.nginx.com/keys/nginx_test_signing.key
35
- sudo gpg --no-default-keyring --keyring /usr/share/keyrings/nginx_test_signing.gpg \
36
- --import nginx_test_signing.key
37
39
echo "Acquire::https::pkgs-test.nginx.com::Verify-Peer \"true\";" | sudo tee -a /etc/apt/apt.conf.d/90nginx
38
40
echo "Acquire::https::pkgs-test.nginx.com::Verify-Host \"true\";" | sudo tee -a /etc/apt/apt.conf.d/90nginx
39
41
echo "Acquire::https::pkgs-test.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" \
40
42
| sudo tee -a /etc/apt/apt.conf.d/90nginx
41
43
echo "Acquire::https::pkgs-test.nginx.com::SslKey \"/etc/ssl/nginx/nginx-repo.key\";" \
42
44
| sudo tee -a /etc/apt/apt.conf.d/90nginx
43
- printf "deb [signed-by=/usr/share/keyrings/nginx_test_signing .gpg] \
45
+ printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring .gpg] \
44
46
https://pkgs-test.nginx.com/nightly/ubuntu $(lsb_release -cs) nginx-plus\n" \
45
47
| sudo tee /etc/apt/sources.list.d/nginx-plus.list
46
48
0 commit comments