-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #123 - adds bdns generation tools and adds sensibility for BRICK…
…S_DOMAIN environment variable
- Loading branch information
1 parent
6ca3746
commit 112f620
Showing
47 changed files
with
3,097 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: File Generation | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'fgt-bdns/*' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'fgt-bdns/*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run the python script - Pull request | ||
id: pr_preview | ||
if: | | ||
github.event_name == 'pull_request' | ||
run: | | ||
scriptOutput=$(cd fgt-bdns && python3 ./scripts/generate-files.py) | ||
cd fgt-bdns && python3 ./fgt-bdns/scripts/generate-files.py | ||
newFile=$(cat ./networks/dev/plugin_data_common.json) | ||
echo $newFile | ||
echo "MY_OUTPUT<<EOF" >> $GITHUB_ENV | ||
echo "Script logs:" >> $GITHUB_ENV | ||
echo " " >> $GITHUB_ENV | ||
echo "$scriptOutput" >> $GITHUB_ENV | ||
echo " " >> $GITHUB_ENV | ||
echo "New plugin_data_common.json file:" >> $GITHUB_ENV | ||
echo " " >> $GITHUB_ENV | ||
echo "$newFile" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Auto Comment | ||
uses: wow-actions/auto-comment@v1 | ||
if: | | ||
github.event_name == 'pull_request' | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
pullRequestOpened: | | ||
👋 @{{ author }} | ||
Thank you for raising your pull request. | ||
This is Python script output: | ||
``` | ||
${{ env.MY_OUTPUT }} | ||
``` | ||
pullRequestSynchronize: | | ||
👋 @{{ author }} | ||
Thank you updating your pull request. | ||
This is the new Python script output: | ||
``` | ||
${{ env.MY_OUTPUT }} | ||
``` | ||
pullRequestEdited: | | ||
👋 @{{ author }} | ||
The base branch has been updated. | ||
This is the new Python script output: | ||
``` | ||
${{ env.MY_OUTPUT }} | ||
``` | ||
- name: Run the python script - Push | ||
if: | | ||
github.event_name == 'push' | ||
run: | | ||
cd fgt-bdns && python3 ./scripts/generate-files.py | ||
- name: Commit files # transfer the new html files back into the repository | ||
if: | | ||
github.event_name == 'push' | ||
run: | | ||
git config --local user.name "github-action" | ||
git add . | ||
git commit -m "GitHub Action Commit: Updating the repository with generated files" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
if: | | ||
github.event_name == 'push' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
force: true |
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,173 @@ | ||
{ | ||
"dev.traceability" : { | ||
"anchoringServices": [ | ||
"$ORIGIN" | ||
], | ||
"notifications": [ | ||
"$ORIGIN" | ||
] | ||
}, | ||
"dev.traceability.bayer" : { | ||
"brickStorages": [ | ||
"$ORIGIN" | ||
], | ||
"anchoringServices": [ | ||
"$ORIGIN" | ||
], | ||
"notifications": [ | ||
"$ORIGIN" | ||
] | ||
}, "dev.traceability.whs-takeda" : { | ||
"brickStorages": [ | ||
"http://172.16.63.103:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.103:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.103:8080" | ||
] | ||
}, "dev.traceability.pfizer" : { | ||
"brickStorages": [ | ||
"http://172.16.63.66:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.66:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.66:8080" | ||
] | ||
}, "dev.traceability.pha-2" : { | ||
"brickStorages": [ | ||
"http:/172.16.63.152:8080" | ||
], | ||
"anchoringServices": [ | ||
"http:/172.16.63.152:8080" | ||
], | ||
"notifications": [ | ||
"http:/172.16.63.152:8080" | ||
] | ||
}, "dev.traceability.whs1" : { | ||
"brickStorages": [ | ||
"http://172.16.63.101:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.101:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.101:8080" | ||
] | ||
}, "dev.traceability.msd" : { | ||
"brickStorages": [ | ||
"http://172.16.63.64:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.64:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.64:8080" | ||
] | ||
}, "dev.traceability.whs-zuellig" : { | ||
"brickStorages": [ | ||
"http://172.16.63.104:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.104:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.104:8080" | ||
] | ||
}, "dev.traceability.sanofi" : { | ||
"brickStorages": [ | ||
"http://172.16.63.68:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.68:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.68:8080" | ||
] | ||
}, "dev.traceability.novo-nordisk" : { | ||
"brickStorages": [ | ||
"http://172.16.63.65:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.65:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.65:8080" | ||
] | ||
}, "dev.traceability.pha-1" : { | ||
"brickStorages": [ | ||
"http://172.16.63.151:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.151:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.151:8080" | ||
] | ||
}, "dev.traceability.whs2" : { | ||
"brickStorages": [ | ||
"http://172.16.63.102:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.102:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.102:8080" | ||
] | ||
}, "dev.traceability.takeda" : { | ||
"brickStorages": [ | ||
"http://172.16.63.67:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.67:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.67:8080" | ||
] | ||
}, "dev.traceability.roche" : { | ||
"brickStorages": [ | ||
"http://172.16.63.61:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.61:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.61:8080" | ||
] | ||
}, "dev.traceability.traceability" : { | ||
"brickStorages": [ | ||
"http://172.16.51.62:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.51.62:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.51.62:8080" | ||
] | ||
}, "dev.traceability.gsk" : { | ||
"brickStorages": [ | ||
"http://172.16.63.63:8080" | ||
], | ||
"anchoringServices": [ | ||
"http://172.16.63.63:8080" | ||
], | ||
"notifications": [ | ||
"http://172.16.63.63:8080" | ||
] | ||
}, | ||
"dev.vault.bayer" : { | ||
"replicas": [], | ||
"brickStorages": [ | ||
"$ORIGIN" | ||
], | ||
"anchoringServices": [ | ||
"$ORIGIN" | ||
], | ||
"notifications": [ | ||
"$ORIGIN" | ||
] | ||
} | ||
} |
Oops, something went wrong.