-
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.
set spring boot admin credentials with secrets
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,12 @@ on: | |
jobs: | ||
init-update: | ||
runs-on: ubuntu-latest | ||
env: | ||
SPRING_BOOT_ADMIN_USER: ${{ secrets.SPRING_BOOT_ADMIN_USER }} | ||
SPRING_BOOT_ADMIN_PASSWORD: ${{ secrets.SPRING_BOOT_ADMIN_PASSWORD }} | ||
steps: | ||
- name: Prepare deployment | ||
run: bash -c ./service_config/prepare_dployment.sh | ||
- uses: actions/checkout@v4 | ||
- name: Init update | ||
uses: WSE-research/[email protected] | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# replace secrets | ||
if [ -z "$SPRING_BOOT_ADMIN_USER" ]; then | ||
echo "SPRING_BOOT_ADMIN_USER is not set. Check your secrets." | ||
exit 2 | ||
else | ||
sed -i "s/SPRING_BOOT_ADMIN_USER/$SPRING_BOOT_ADMIN_USER/g" ./service_config/files/qb-kgqanwrapper-dbpedia | ||
sed -i "s/SPRING_BOOT_ADMIN_USER/$SPRING_BOOT_ADMIN_USER/g" ./service_config/files/qb-kgqanwrapper-wikidata | ||
fi | ||
|
||
if [ -z "$SPRING_BOOT_ADMIN_PASSWORD" ]; then | ||
echo "SPRING_BOOT_ADMIN_PASSWORD is not set. Check your secrets." | ||
exit 2 | ||
else | ||
sed -i "s/SPRING_BOOT_ADMIN_PASSWORD/$SPRING_BOOT_ADMIN_PASSWORD/g" ./service_config/files/qb-kgqanwrapper-dbpedia | ||
sed -i "s/SPRING_BOOT_ADMIN_PASSWORD/$SPRING_BOOT_ADMIN_PASSWORD/g" ./service_config/files/qb-kgqanwrapper-wikidata | ||
fi |