Skip to content

Commit a9e2ff4

Browse files
author
Sean Sundberg
authored
Adds interface to metadata and updates workflows (#49)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent 1d1d967 commit a9e2ff4

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.github/workflows/publish-assets.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ jobs:
2020
ref: ${{ github.event.release.tag_name }}
2121

2222
- name: Build catalog
23-
uses: ibm-garage-cloud/action-module-catalog@v1
23+
uses: cloud-native-toolkit/action-module-metadata-create@v1
2424
with:
2525
tagName: ${{ github.event.release.tag_name }}
2626
distDir: ${{ env.DIST_DIR }}
2727
publishBranch: ${{ env.PUBLISH_BRANCH }}
28+
strict: false
29+
validate: true
2830

2931
- name: Deploy
3032
uses: peaceiris/actions-gh-pages@v3

.github/workflows/verify.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,24 @@ jobs:
4949
TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
5050
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
5151

52+
verifyMetadata:
53+
runs-on: ubuntu-latest
54+
55+
env:
56+
DIST_DIR: ./dist
57+
PUBLISH_BRANCH: gh-pages
58+
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v2
62+
63+
- uses: cloud-native-toolkit/action-module-metadata-create@v1
64+
with:
65+
strict: true
66+
validate: true
67+
5268
release:
53-
# if: ${{ github.event_name == 'push' }}
54-
needs: verify
69+
needs: [verify, verifyMetadata]
5570
runs-on: ubuntu-latest
5671
if: ${{ github.event_name == 'push' }}
5772

module.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: ibm-vpc
22
type: terraform
33
description: Provisions the IBM Cloud VPC instance with network acls
4+
interfaces:
5+
- github.com/cloud-native-toolkit/automation-modules#ibm-vpc-resource
46
tags:
57
- infrastructure
68
- networking

0 commit comments

Comments
 (0)