Skip to content

Commit

Permalink
Fixed envsubst code
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Lundberg Suter committed Mar 9, 2025
1 parent e7fa863 commit 2661591
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: UNFINISHED - setup nginx from the configuration file
name: Setup nginx from the configuration file

on:
workflow_dispatch:
Expand All @@ -23,6 +23,11 @@ jobs:
#- name: Create temporary nginx config file
# run: envsubst < ./nginx_template.txt > temp_default.conf
# Maybe look at https://www.baeldung.com/linux/envsubst-command to get an idea

# Fixed envsubst code
- name: Create temporary nginx config file
run: envsubst "$(printf '${%s} ' $(env | cut -d= -f1))" < ./nginx_template.txt > temp_default.conf


- name: Copy temporary file to correct place
run: cp temp_default.conf /etc/nginx/conf.d/default.conf
Expand Down

0 comments on commit 2661591

Please sign in to comment.