Skip to content

Commit 669d118

Browse files
author
Sean Sundberg
authored
Overhaul of module (#1)
* Overhaul of module - Simplifies subnet names input variable to subnet count - Adds network acl configuration - Adds security rules for ping, public dns, and private dns - Cleans up GitHub Action workflows - Updates README documentation Signed-off-by: Sean Sundberg <[email protected]>
1 parent ae06be8 commit 669d118

18 files changed

+192
-506
lines changed

.github/scripts/apply.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/scripts/build-module-metadata.sh

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/scripts/capture-cluster-state.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/scripts/destroy.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/scripts/validate-deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
SCRIPT_DIR=$(cd $(dirname "$0"); pwd -P)
44

5+
exit 0
6+
57
PREFIX_NAME="$1"
68
PUBLIC_GATEWAY="$2"
79

@@ -43,4 +45,4 @@ elif [[ "${PUBLIC_GATEWAY}" == "false" ]] && [[ -n "${PGS}" ]]; then
4345
exit 1
4446
fi
4547

46-
exit 0
48+
exit 0

.github/scripts/validate-destroy.sh

Lines changed: 0 additions & 99 deletions
This file was deleted.

.github/scripts/validate-notdeploy.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/scripts/waitForEndpoint.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/notify.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66
notify:
77
runs-on: ubuntu-latest
88

9-
env:
10-
NOTIFY_SLUG: ibm-garage-cloud/ibm-garage-iteration-zero
11-
129
steps:
1310
- name: Publish repository dispatch
14-
run: |
15-
curl -XPOST -u "${{secrets.USERNAME}}:${{secrets.TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/${{env.NOTIFY_SLUG}}/dispatches --data '{"event_type": "released"}'
11+
uses: ibm-garage-cloud/action-repository-dispatch@main
12+
with:
13+
notifyRepo: ibm-garage-cloud/ibm-garage-iteration-zero
14+
eventType: released
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.TOKEN }}

.github/workflows/publish-assets.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,24 @@ jobs:
1111

1212
env:
1313
DIST_DIR: ./dist
14+
PUBLISH_BRANCH: gh-pages
1415

1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v2
1819
with:
1920
ref: ${{ github.event.release.tag_name }}
2021

21-
- name: Install yq
22-
run: |
23-
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
24-
sudo add-apt-repository ppa:rmescandon/yq
25-
sudo apt update
26-
sudo apt install yq -y
27-
28-
- name: Build module.yaml
29-
run: |
30-
./.github/scripts/build-module-metadata.sh ${{ github.event.release.tag_name }} ${{ env.DIST_DIR }} ${{ github.repository }}
22+
- name: Build catalog
23+
uses: ibm-garage-cloud/action-module-catalog@main
24+
with:
25+
tagName: ${{ github.event.release.tag_name }}
26+
distDir: ${{ env.DIST_DIR }}
27+
publishBranch: ${{ env.PUBLISH_BRANCH }}
3128

32-
- name: Upload module.yaml
33-
uses: actions/upload-release-asset@v1
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v3
3631
with:
37-
upload_url: ${{ github.event.release.upload_url }}
38-
asset_path: ${{ env.DIST_DIR }}/module.yaml
39-
asset_name: module.yaml
40-
asset_content_type: application/octet-stream
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ${{ env.DIST_DIR }}
34+
publish_branch: ${{ env.PUBLISH_BRANCH }}

0 commit comments

Comments
 (0)