Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit 46682db

Browse files
author
Sean Sundberg
authored
Adds interfaces line to metadata (#53)
* Adds interfaces line to metadata * Updates metadata workflows Signed-off-by: Sean Sundberg <[email protected]>
1 parent 947206f commit 46682db

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
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: cloud-native-toolkit/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: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v1
3131

3232
- name: Verify deploy on ${{ matrix.platform }}
33-
uses: ibm-garage-cloud/action-module-verify-deploy@main
33+
uses: cloud-native-toolkit/action-module-verify-deploy@main
3434
with:
3535
clusterId: ${{ matrix.platform }}
3636
validateDeployScript: .github/scripts/validate-deploy.sh
@@ -39,17 +39,33 @@ jobs:
3939
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
4040

4141
- name: Verify destroy on ${{ matrix.platform }}
42-
uses: ibm-garage-cloud/action-module-verify-destroy@main
42+
uses: cloud-native-toolkit/action-module-verify-destroy@main
4343
if: ${{ always() }}
4444
with:
4545
clusterId: ${{ matrix.platform }}
4646
env:
4747
TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
4848
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
4949

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

module.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: ibm-ocp-vpc
22
alias: cluster
3+
interfaces:
4+
- github.com/cloud-native-toolkit/automation-modules#cluster
35
type: terraform
46
description: Provisions an IBM Cloud OCP cluster
57
tags:

0 commit comments

Comments
 (0)