diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 5b4d15c..c1417a0 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -26,13 +26,13 @@ jobs: run: envsubst '$PROD_PORT_PREFIX,$DEV_PORT_PREFIX,$STAG_PORT_PREFIX,$GATEWAY_POSTFIX' < ./nginx_template.txt > nginx_securefit.conf - name: Copy temporary file to correct place - run: cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf + run: sudo cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf - name: Show nginx file - run: cat /etc/nginx/conf.d/nginx_securefit.conf + run: sudo cat /etc/nginx/conf.d/nginx_securefit.conf - name: Restart Nginx - run: systemctl restart nginx + run: sudo systemctl restart nginx - name: Verify that nginx configuration works - run: nginx -t + run: sudo nginx -t