-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from bcgov/5-port-over-metabase-from-architectu…
…re-repo-to-here-and-add-helm-charts port over metabase from architecture repo to here and add helm charts
- Loading branch information
Showing
50 changed files
with
1,458 additions
and
0 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,35 @@ | ||
--- | ||
name: Bug | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the Bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected Behaviour** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Actual Behaviour** | ||
A clear and concise description of what you expected to happen. | ||
|
||
** Steps To Reproduce** | ||
Steps to reproduce the behaviour: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,8 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- |
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,8 @@ | ||
--- | ||
name: Decision | ||
about: This is a big decision that has been made or raised to PO | ||
title: '' | ||
labels: decision | ||
assignees: '' | ||
|
||
--- |
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,26 @@ | ||
--- | ||
name: Documentation | ||
about: Documentation for a specific area or need | ||
title: '' | ||
labels: documentation | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
|
||
**Definition of Done** | ||
- [ ] Ready to Demo in Sprint Review | ||
- [ ] Does what I have made have appropriate test coverage? | ||
- [ ] Documentation and/or scientific documentation exists and can be found | ||
- [ ] Peer Reviewed by 2 people on the team | ||
- [ ] Manual testing of all PRs in Dev and Prod | ||
- [ ] Merged |
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,21 @@ | ||
--- | ||
name: Epic | ||
about: A User Story Large enough that it cannot be completed in a single sprint, the | ||
desired end state of a feature | ||
title: '' | ||
labels: epic | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
|
||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
|
||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) |
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,26 @@ | ||
--- | ||
name: Feature request / user story | ||
about: Suggest an idea from the perspective of a user | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
|
||
**Definition of Done** | ||
- [ ] Ready to Demo in Sprint Review | ||
- [ ] Does what I have made have appropriate test coverage? | ||
- [ ] Documentation and/or scientific documentation exists and can be found | ||
- [ ] Peer Reviewed by 2 people on the team | ||
- [ ] Manual testing of all PRs in Dev and Prod | ||
- [ ] Merged |
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,9 @@ | ||
name: Update Metabase Version in Helm Chart. | ||
description: Please provide the version of the metabase image to be build. sample format is v0.43.1 | ||
body: | ||
- type: input | ||
id: METABASE_VERSION | ||
attributes: | ||
label: Metabase Version | ||
validations: | ||
required: 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,22 @@ | ||
--- | ||
name: Question | ||
about: Ask us a question! | ||
title: '' | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
basic description of the task, is it focuse on research with users or the business area? is it design focused on either co-design or wireframing? is it User Testing or compiling results? | ||
|
||
**Acceptance Criteria** | ||
- [ ] what is required for this task to be complete? | ||
- what is the finishing point or end state of this task? | ||
- [ ] what is the output of this task? | ||
|
||
**SME/User Contact** | ||
(may want to use a persona to fill this in) | ||
|
||
**Additional context** | ||
- any additional details that could not be captured above |
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,26 @@ | ||
--- | ||
name: Schema change | ||
about: Changes to the schema | ||
title: '' | ||
labels: schema | ||
assignees: '' | ||
|
||
--- | ||
|
||
**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)* | ||
|
||
**Additional Context** | ||
- enter text here | ||
- enter text here | ||
|
||
**Acceptance Criteria** | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
- [ ] Given (Context), When (action carried out), Then (expected outcome) | ||
|
||
**Definition of Done** | ||
- [ ] Ready to Demo in Sprint Review | ||
- [ ] Does what I have made have appropriate test coverage? | ||
- [ ] Documentation and/or scientific documentation exists and can be found | ||
- [ ] Peer Reviewed by 2 people on the team | ||
- [ ] Manual testing of all PRs in Dev and Prod | ||
- [ ] Merged |
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,20 @@ | ||
--- | ||
name: Task | ||
about: Work for the team that cannot be written as a user story | ||
title: '' | ||
labels: task | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
A clear and concise description of what the task is. | ||
|
||
**Acceptance Criteria** | ||
- [ ] first | ||
- [ ] second | ||
- [ ] third | ||
|
||
**Additional context** | ||
- Add any other context about the task here. | ||
- Or here |
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,22 @@ | ||
--- | ||
name: UX Task | ||
about: This is a Task for UX Research, Design or Testing | ||
title: '' | ||
labels: ux | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the task** | ||
basic description of the task, is it focuse on research with users or the business area? is it design focused on either co-design or wireframing? is it User Testing or compiling results? | ||
|
||
**Acceptance Criteria** | ||
- [ ] what is required for this task to be complete? | ||
- what is the finishing point or end state of this task? | ||
- [ ] what is the output of this task? | ||
|
||
**SME/User Contact** | ||
(may want to use a persona to fill this in) | ||
|
||
**Additional context** | ||
- any additional details that could not be captured above |
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,30 @@ | ||
name: semantic release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Pull Request Closed ] | ||
types: [ completed ] | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
helm-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
|
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,61 @@ | ||
name: build-deploy-metabase-on-issue | ||
|
||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
build-metabase-image: | ||
name: Build Metabase Image. | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Issue Forms Body Parser | ||
id: parse | ||
uses: zentered/[email protected] | ||
|
||
- name: Stringify Result | ||
uses: actions/github-script@v6 | ||
id: set-result | ||
with: | ||
script: | | ||
const data = ${{ steps.parse.outputs.data }}; | ||
const version = data["metabase-version"].text; | ||
return version; | ||
result-encoding: string | ||
|
||
- name: check if build is required. | ||
id: check | ||
run: | | ||
# Check if version paramter is given. | ||
METABASE_VERSION=${{ steps.set-result.outputs.result }} | ||
URL="https://downloads.metabase.com/$METABASE_VERSION/metabase.jar" | ||
if [ -z $METABASE_VERSION ] || [ $(curl -ILso /dev/null -w "%{http_code}" "${URL}") -ne 200 ] | ||
then | ||
echo "build=false" >> $GITHUB_OUTPUT; | ||
exit 0 | ||
fi | ||
echo "build=true" >> $GITHUB_OUTPUT; | ||
# | ||
- name: Modify Files | ||
if: steps.check.outputs.build == 'true' | ||
id: modify_files | ||
shell: bash | ||
run: | | ||
appVersion=${{ steps.set-result.outputs.result }} | ||
version=${appVersion//v/} | ||
git config --local user.name ${{ github.actor }} | ||
git checkout -b deps/metabase-version-update-$appVersion | ||
yq '.appVersion = $appVersion' charts/nr-metabase/Chart.yaml | ||
yq '.version = $version' charts/nr-metabase/Chart.yaml | ||
yq '.metabase.image.tag = $appVersion' charts/nr-metabase/values.yaml | ||
git add charts/nr-metabase/values.yaml charts/nr-metabase/Chart.yaml | ||
git commit -m "Updating the version of the metabase image to $appVersion" | ||
git push origin chore/ministry-name-schema | ||
# Create a Pull Request | ||
gh pr create --assignee "mishraomp" --base main --label "dependencies" --title "Updating the version of the metabase image to $appVersion" --body "Updating the version of the metabase image to $appVersion." | ||
Oops, something went wrong.