-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
- Loading branch information
0 parents
commit 0259599
Showing
19 changed files
with
591 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,59 @@ | ||
name: 🎯 Bug report | ||
description: Report a bug to help us improve Deckhouse | ||
labels: | ||
- 'type/bug' | ||
- 'status/needs-triage' | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for submitting a bug report! | ||
Please fill out the template below to make it easier to debug your problem. | ||
- type: checkboxes | ||
attributes: | ||
label: Preflight Checklist | ||
description: Please ensure you've completed all of the following. | ||
options: | ||
- label: I agree to follow the [Code of Conduct](https://github.com/deckhouse/deckhouse/blob/main/CODE_OF_CONDUCT.md) that this project adheres to. | ||
required: true | ||
- label: I have searched the [issue tracker](https://github.com/deckhouse/deckhouse/issues) for an issue that matches the one I want to file, without success. | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Version | ||
description: | | ||
What version of Deckhouse are you running? | ||
placeholder: v1.0.0 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Actual Behavior | ||
description: A clear description of what actually happens. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior if it is not self-explanatory. | ||
placeholder: | | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
- type: textarea | ||
attributes: | ||
label: Additional Information | ||
description: Links? References? Anything that will give us more context about the issue that you are encountering! | ||
- type: textarea | ||
attributes: | ||
label: Logs | ||
description: Deckhouse application logs (if relevant). | ||
render: shell |
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,13 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 📚 Documentation | ||
url: https://deckhouse.io/documentation/ | ||
about: Check the documentation for help | ||
|
||
- name: 💬 Telegram channel [EN] | ||
url: https://t.me/deckhouse | ||
about: Please ask and answer questions here | ||
|
||
- name: 🇷🇺 Telegram channel [RU] | ||
url: https://t.me/deckhouse_ru | ||
about: Please ask and answer questions 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,37 @@ | ||
name: 💡 Feature request | ||
description: Suggest an idea for Deckhouse | ||
labels: | ||
- 'type/enhancement' | ||
- 'status/needs-triage' | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for submitting a feature request! | ||
Please describe what you would like to change/add and why in detail by filling out the template below. | ||
- type: checkboxes | ||
attributes: | ||
label: Preflight Checklist | ||
description: Please ensure you've completed all of the following. | ||
options: | ||
- label: I agree to follow the [Code of Conduct](https://github.com/deckhouse/deckhouse/blob/main/CODE_OF_CONDUCT.md) that this project adheres to. | ||
required: true | ||
- label: I have searched the [issue tracker](https://github.com/deckhouse/deckhouse/issues) for an issue that matches the one I want to file, without success. | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Use case. Why is this important? | ||
description: A clear and concise description of the problem you are seeking to solve with this feature request. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Proposed Solution | ||
description: A clear and concise description of what would you like to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional Information | ||
description: 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,30 @@ | ||
## Description | ||
<!--- | ||
Describe your changes in detail. | ||
Please let users know if your feature influences critical cluster components | ||
(restarts of ingress-controllers, control-plane, Prometheus, etc). | ||
--> | ||
|
||
## Why do we need it, and what problem does it solve? | ||
<!--- | ||
This is the most important paragraph. | ||
You must describe the main goal of your feature. | ||
If it fixes an issue, place a link to the issue here. | ||
If it fixes an obvious bug, please tell users about the impact and effect of the problem. | ||
--> | ||
|
||
## What is the expected result? | ||
<!--- | ||
How can one check these changes after applying? | ||
Describe, what (resource, state, event, etc.) MUST or MUST NOT change/happen after applying these changes. | ||
--> | ||
|
||
## Checklist | ||
- [ ] The code is covered by unit tests. | ||
- [ ] e2e tests passed. | ||
- [ ] Documentation updated according to the changes. | ||
- [ ] Changes were tested in the Kubernetes cluster manually. |
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,44 @@ | ||
name: Build and push for dev | ||
|
||
env: | ||
MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }} | ||
CI_COMMIT_REF_NAME: ${{ github.ref_name }} | ||
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }} | ||
MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }} | ||
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_DEV_MODULES_REGISTRY_LOGIN }} | ||
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
dev_setup_build: | ||
runs-on: ubuntu-latest | ||
name: Build and Push images | ||
steps: | ||
- name: Set vars for PR | ||
if: ${{ github.ref_name != 'main' }} | ||
run: | | ||
MODULES_MODULE_TAG="$(echo pr${{ github.ref_name }} | sed 's/\/.*//g')" | ||
echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV" | ||
shell: bash | ||
- name: Set vars for main | ||
if: ${{ github.ref_name == 'main' }} | ||
run: | | ||
echo "MODULES_MODULE_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV" | ||
shell: bash | ||
- name: Print vars | ||
run: | | ||
echo MODULES_REGISTRY=$MODULES_REGISTRY | ||
echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME | ||
echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME | ||
echo MODULES_MODULE_SOURCE=$MODULES_MODULE_SOURCE | ||
echo MODULES_MODULE_TAG=$MODULES_MODULE_TAG | ||
shell: bash | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 |
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,73 @@ | ||
name: Build and push for prod | ||
|
||
env: | ||
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }} | ||
CI_COMMIT_REF_NAME: ${{ github.ref_name }} | ||
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }} | ||
MODULE_SOURCE_NAME: ${{ vars.PROD_MODULE_SOURCE_NAME }} | ||
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_PROD_MODULES_REGISTRY_LOGIN }} | ||
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }} | ||
MODULES_MODULE_TAG: ${{ github.ref_name }} | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
prod_ce_setup_build: | ||
runs-on: ubuntu-latest | ||
name: Build and Push CE | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
echo $MODULES_MODULE_SOURCE | ||
echo $MODULES_MODULE_TAG | ||
shell: bash | ||
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
|
||
prod_ee_setup_build: | ||
runs-on: ubuntu-latest | ||
name: Build and Push EE | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
echo $MODULES_MODULE_SOURCE | ||
echo $MODULES_MODULE_TAG | ||
shell: bash | ||
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 | ||
|
||
prod_fe_setup_build: | ||
runs-on: ubuntu-latest | ||
name: Build and Push FE | ||
steps: | ||
- name: SET VAR | ||
run: | | ||
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/modules" >> "$GITHUB_ENV" | ||
- run: | | ||
echo $MODULES_REGISTRY | ||
echo $MODULES_MODULE_NAME | ||
echo $MODULES_MODULE_SOURCE | ||
echo $MODULES_MODULE_TAG | ||
shell: bash | ||
name: Show vars | ||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- uses: deckhouse/modules-actions/build@v1 |
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,18 @@ | ||
name: PR Checks | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
release-label: | ||
name: Release note label | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check minimum labels | ||
uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: minimum | ||
count: 1 | ||
labels: "release-note/dependencies, dependencies, release-note/deprecation, release-note/breaking-change, release-note/bug, bug, release-note/enhancement, enhancement, release-note/documentation, documentation, release-note/new-feature, release-note/ignore" |
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,60 @@ | ||
name: Deploy Dev | ||
|
||
env: | ||
MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }} | ||
CI_COMMIT_REF_NAME: ${{ github.event.inputs.tag }} | ||
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }} | ||
MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }} | ||
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_DEV_MODULES_REGISTRY_LOGIN }} | ||
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | ||
RELEASE_CHANNEL: ${{ github.event.inputs.channel }} | ||
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
channel: | ||
description: "Select release channel" | ||
type: choice | ||
default: alpha | ||
options: | ||
- "alpha" | ||
- "beta" | ||
- "early-access" | ||
- "stable" | ||
- "rock-solid" | ||
|
||
tag: | ||
description: "The module's tag, which must include the -dev1 postfix. For example: v1.21.1-dev1" | ||
type: string | ||
required: true | ||
|
||
enableBuild: | ||
type: boolean | ||
default: true | ||
description: 'Set to true if build is required' | ||
|
||
jobs: | ||
deploy-dev: | ||
runs-on: ubuntu-latest | ||
name: Deploy dev | ||
steps: | ||
- name: PRINT VARS | ||
run: | | ||
echo MODULES_REGISTRY=$MODULES_REGISTRY | ||
echo MODULES_MODULE_SOURCE=$MODULES_MODULE_SOURCE | ||
echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME | ||
echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME | ||
echo RELEASE_CHANNEL=$RELEASE_CHANNEL | ||
echo MODULES_MODULE_TAG=$MODULES_MODULE_TAG | ||
shell: bash | ||
- name: Validation for tag | ||
run: | | ||
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+-dev1$' | ||
shell: bash | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: deckhouse/modules-actions/setup@v1 | ||
- if: ${{ github.event.inputs.enableBuild == 'true' }} | ||
uses: deckhouse/modules-actions/build@v1 | ||
- uses: deckhouse/modules-actions/deploy@v1 |
Oops, something went wrong.