-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init setup uses env var prod from secret while bootstrap paths from a…
… shell script init
- Loading branch information
1 parent
68e1dc5
commit 008847f
Showing
11 changed files
with
144 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,35 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
- name: bootstrap environment variables | ||
id: load-env | ||
run: | | ||
# first step init the file | ||
. ./bootstrap_env.sh | ||
# Check if .env.bootstrap file exists | ||
if [ -f .env.bootstrap ]; then | ||
# Process each line in the .env.bootstrap file | ||
while IFS= read -r line; do | ||
# Skip empty lines and lines starting with # | ||
if [ -n "$line" ] && [[ ! "$line" =~ ^# ]]; then | ||
# Export the variable to $GITHUB_ENV | ||
echo "$line" >> $GITHUB_ENV | ||
fi | ||
done < .env.bootstrap | ||
else | ||
echo ".env.bootstrap file not found" | ||
fi | ||
- name: Create .env file from secret | ||
run: | | ||
echo "$PROD_ENV" > .env | ||
env: | ||
PROD_ENV: ${{ secrets.PROD_ENV }} | ||
|
||
|
||
|
||
|
||
- name: Get lightdash version | ||
uses: sergeysova/jq-action@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,5 @@ | |
"packages.yml" | ||
] | ||
}, | ||
"dbt.perspectiveTheme": "Monokai" | ||
"dbt.perspectiveTheme": "Monokai", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters