Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
SECRET_ENV_FILE: 'env/.env.local'
run: |
echo "------"
echo $SECRET_APP_CONFIG | base64 --decode > $SECRET_ENV_FILE
echo $SECRET_APP_CONFIG | base64 --decode -i > $SECRET_ENV_FILE

# load the environment
- name: Load the github dotenv file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
SECRET_ENV_FILE: 'env/.env.local'
run: |
echo "------"
echo $SECRET_APP_CONFIG | base64 --decode > $SECRET_ENV_FILE
echo $SECRET_APP_CONFIG | base64 --decode -i > $SECRET_ENV_FILE

# load the environment
- name: Load the github dotenv file
Expand Down
6 changes: 4 additions & 2 deletions scripts/update_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ url=$(git config --get remote.origin.url)
repo_path=$(echo "$url" | sed -E 's|.*/([^/]+)/([^/.]+)(\.git)?|\1/\2|')


# update the app configs using a base64 encoding of
# update the app configs using a base64 encoding of
# all the variables
ENC=$(cat env/.env.local | base64)
# Note: Use tr -d '\n' to remove line breaks for cross-platform compatibility
# (Linux base64 adds newlines by default, macOS doesn't)
ENC=$(cat env/.env.local | base64 | tr -d '\n')
gh secret set SECRET_APP_CONFIG --body "$ENC" --repo $repo_path


Expand Down