diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index 8c18b29..f9caae7 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -28,7 +28,13 @@ jobs: - name: Replace environment variables in Nginx config run: | envsubst '${DEV_PORT_PREFIX} ${PROD_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > nginx_secfit.conf + + - name: Copy variables to conf file + run: | sudo cp nginx_secfit.conf /etc/nginx/conf.d/nginx.conf + + - name: Test setup + run: | sudo nginx -t # Restarting nginx service