Skip to content

Commit f7436da

Browse files
committed
feat: add manifest updater
1 parent 4faa25d commit f7436da

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.github/workflows/build.yaml.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ jobs:
6969
name: local-og-describer-template
7070
path: ./discovery/local.tar
7171
retention-days: 1
72+
- name: Add Tag to Release
73+
run: |
74+
echo "new_tag=${{ steps.tag_version.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
75+
export TAG=${{ steps.tag_version.outputs.new_tag }}
76+
./update-manifest.sh
77+
working-directory: ./platform/constants
78+
- name: Check manifest file
79+
run: cat ./platform/constants/manifest.yaml
7280
- name: Build Integration Plugin
7381
working-directory: ./platform
7482
run: make build

platform/constants/manifest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
IntegrationType: template
1+
IntegrationType: template
2+
DescriberURL: ghcr.io/opengovern/og-describer-template
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
file_path="manifest.yaml"
4+
5+
# Append multiple lines to the file
6+
cat <<EOF >> "$file_path"
7+
DescriberTag: local-$TAG
8+
EOF
9+
10+
echo "Data has been appended to $file_path"

0 commit comments

Comments
 (0)