From d5d46f94f7aa103941b4d28e5b9a957d3968d3ce Mon Sep 17 00:00:00 2001 From: Trayan Azarov Date: Sat, 29 Jul 2023 15:20:44 +0300 Subject: [PATCH] chore: Added bug and feature request issue templates and docker image in ghcr Refs: #2 --- .github/ISSUE_TEMPLATE/bug_report.yaml | 63 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yaml | 46 +++++++++++++++ .github/workflows/release.yml | 23 +++++++- 3 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..cb12793 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,63 @@ +name: Bug Report +description: File a bug report with ChromaDB Chart +title: "[Bug]: " +labels: ["bug", "triage"] +# assignees: +# - octocat +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Also tell us, what did you expect to happen? + placeholder: Tell us what you see! +# value: "A bug happened!" + validations: + required: true + - type: dropdown + id: chroma-version + attributes: + label: ChromaDB Version + description: What is your chromaDB version? + options: + - 0.4.3 + validations: + required: true + - type: dropdown + id: kube-version + attributes: + label: Kubernetes Version + description: What is your Kubernetes version? + options: + - 1.24.x + - 1.25.x + - 1.26.x + - 1.27.x + validations: + required: true + - type: textarea + id: versions + attributes: + label: Environment details + description: Tell us about your environment setup. + placeholder: On-prem k3s, GKE, EKS, etc. + validations: + required: true + - type: textarea + id: logs + attributes: + label: Logs, Kubectl output, Manifests, etc. + description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. + render: shell +# - type: checkboxes +# id: terms +# attributes: +# label: Code of Conduct +# description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com) +# options: +# - label: I agree to follow this project's Code of Conduct +# required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 0000000..80f483b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,46 @@ +name: "Feature Request" +description: Suggest an idea for ChromaDB Chart +title: "[Feature Request]: " +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to request this feature! + - type: textarea + id: problem + attributes: + label: Describe the problem + description: Please provide a clear and concise description the problem this feature would solve. The more information you can provide here, the better. + placeholder: I prefer if... + validations: + required: true + - type: textarea + id: solution + attributes: + label: Describe the proposed solution + description: Please provide a clear and concise description of what you would like to happen. + placeholder: I would like to see... + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Alternatives considered + description: "Please provide a clear and concise description of any alternative solutions or features you've considered." + - type: dropdown + id: importance + attributes: + label: Importance + description: How important is this feature to you? + options: + - nice to have + - would make my life easier + - I cannot run the chart without it + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional Information + description: Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 718c374..4e52dc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: push: branches: - main +env: + REGISTRY: ghcr.io + IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma" + jobs: release: runs-on: ubuntu-latest @@ -24,6 +28,23 @@ jobs: version: v3.4.0 - name: Run chart-releaser + id: releaser uses: helm/chart-releaser-action@v1.5.0 env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Log in to the Container registry +# if: ${{ steps.releaser.outputs.changed_charts == '' }} + uses: docker/login-action@v2.1.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push release Docker image +# if: ${{ steps.releaser.outputs.changed_charts == '' }} + uses: docker/build-push-action@v3.2.0 + with: + context: . + file: image/Dockerfile + push: true + tags: "${{ env.IMAGE_NAME }}:${{steps.releaser.outputs.chart_version}},${{ env.IMAGE_NAME }}:latest" \ No newline at end of file