From 8fef681c00216c82bb2d0692afce0ca027e7c626 Mon Sep 17 00:00:00 2001 From: alty1224 Date: Tue, 21 Jan 2025 00:04:07 +0500 Subject: [PATCH] Applied changes from commit 2db4ff9390f019c346cef4af0f2a3e6eaf4d7735 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 ++ .github/ISSUE_TEMPLATE/feature_request.md | 2 ++ .github/PULL_REQUEST_TEMPLATE.md | 13 +++++++++++++ .github/workflows/clean.yml | 4 ++++ .github/workflows/push.yml | 20 +++++++++++++++++++- 5 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 577b4d0..f747ae8 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -29,3 +29,5 @@ If applicable, add screenshots to help explain your problem. **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 index aeeea1b..0ca933e 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -18,3 +18,5 @@ A clear and concise description of any alternative solutions or features you've **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 index 34a402c..fdef88d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -41,3 +41,16 @@ _If your PR includes any deployment or processing changes, please utilize this c ## [optional] Are there any things to highlight or double check? ## [optional] What gif best describes this PR or how it makes you feel? +- [ ] Refactor +- [ ] Feature +- [ ] Bug Fix +- [ ] Optimization +- [ ] Documentation Update +--> +- Related Issue # +- Closes # +- [ ] 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? +- [ ] Yes +- [ ] No, and this is why: _please replace this line with details on why tests +- [ ] I need help with writing tests diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index d49fe5c..e5c6668 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -35,3 +35,7 @@ jobs: package-type: 'container' package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }} if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }} + - name: qubership-backup-daemon + base: alpine + component-tag: ${{ env.TAG_NAME }}_${{ matrix.component.base }} + access-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 82d15cf..7995fc2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -56,4 +56,22 @@ jobs: package-name: ${{ matrix.component.name }} package-type: 'container' package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }} - if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }} \ No newline at end of file + if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }} workflow_dispatch: + inputs: + publish_docker: + description: "Publish image to ghcr.io" + type: boolean + default: true + required: false + PUSH: ${{ (github.event_name == 'workflow_dispatch' && inputs.publish_docker) || !startsWith(github.ref, 'refs/heads/dependabot') }} + GITHUB_GROUP: ${{ github.repository_owner }} + - name: qubership-backup-daemon + file: alpine/Dockerfile + base: alpine + - name: Prepare Group + run: echo "GITHUB_GROUP=${GITHUB_GROUP,,}" >> $GITHUB_ENV + component-tag: ${{ env.TAG_NAME }}_${{ matrix.component.base }} + access-token: ${{ secrets.GITHUB_TOKEN }} + if: ${{ env.PUSH }} + context: ${{ matrix.component.dir }} + tags: ghcr.io/${{ env.GITHUB_GROUP }}/${{ matrix.component.name }}:${{ env.TAG_NAME }}_${{ matrix.component.base }}