diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..577b4d0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,31 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: 'bug' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Environment:** + - Application Version: + - K8S Version: + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..aeeea1b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '[Feature]' +labels: 'feature' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..34a402c --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,43 @@ +## What type of PR is this? (check all applicable) + +- [ ] Refactor +- [ ] Feature +- [ ] Bug Fix +- [ ] Optimization +- [ ] Documentation Update + +## Description + +TDB + +## Related Tickets & Documents + + + +- Related Issue # +- Closes # + +## QA Instructions, Screenshots, Recordings + +_Please replace this line with instructions on how to test your changes, a note +on the devices and browsers this has been tested on, as well as any relevant +images for UI changes._ + +### Breaking Change checklist +_If your PR includes any deployment or processing changes, please utilize this checklist:_ +- [ ] Does it change any deployment parameters, logic of their working or rename them? +- [ ] Did update from previous version tested with the same set of deployment parameters? + +## Added/updated tests? + +- [ ] Yes +- [ ] No, and this is why: _please replace this line with details on why tests + have not been included_ +- [ ] I need help with writing tests + +## [optional] Are there any things to highlight or double check? + +## [optional] What gif best describes this PR or how it makes you feel? diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 39b15b8..552212f 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -28,7 +28,7 @@ jobs: with: component-name: ${{ matrix.component.name }} component-tag: ${{ env.TAG_NAME }} - access-token: ${{ secrets.GH_ACCESS_TOKEN }} + access-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/delete-package-versions@v5 with: package-name: ${{ matrix.component.name }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7679b3a..093cae4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,9 +4,18 @@ on: types: [created] push: branches: - - 'main' + - '**' + workflow_dispatch: + inputs: + publish_docker: + description: "Publish image to ghcr.io" + type: boolean + default: true + required: false env: TAG_NAME: ${{ github.event.release.tag_name || github.ref }} + PUSH: ${{ (github.event_name == 'workflow_dispatch' && inputs.publish_docker) || !startsWith(github.ref, 'refs/heads/dependabot') }} + GITHUB_GROUP: ${{ github.repository_owner }} jobs: multiplatform_build: @@ -32,13 +41,16 @@ jobs: password: ${{secrets.GITHUB_TOKEN}} - name: Prepare Tag run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/tags/@@;s@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV + - name: Prepare Group + run: echo "GITHUB_GROUP=${GITHUB_GROUP,,}" >> $GITHUB_ENV - name: Get package IDs for delete id: get-ids-for-delete uses: Netcracker/get-package-ids@v0.0.1 with: component-name: ${{ matrix.component.name }} component-tag: ${{ env.TAG_NAME }} - access-token: ${{ secrets.GH_ACCESS_TOKEN }} + access-token: ${{ secrets.GITHUB_TOKEN }} + if: ${{ env.PUSH }} - name: Build and push uses: docker/build-push-action@v5 with: @@ -47,7 +59,7 @@ jobs: file: ${{ matrix.component.file }} platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/netcracker/${{ matrix.component.name }}:${{ env.TAG_NAME }} + tags: ghcr.io/${{ env.GITHUB_GROUP }}/${{ matrix.component.name }}:${{ env.TAG_NAME }} provenance: false - uses: actions/delete-package-versions@v5 with: