-
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.
Merge pull request #25 from conduktor/CONS-872-prepare-public
Prepare repository to go public
- Loading branch information
Showing
10 changed files
with
671 additions
and
190 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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG] My issue" | ||
labels: triage | ||
assignees: '' | ||
|
||
--- | ||
Before submitting a bug report, please make sure that you are using the latest version of the CLI and read the [CONTRIBUTING.md](../../CONTRIBUTING.md#reporting-bugs) carefully. | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior and manifests used. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS/Arch: [e.g. MacOS M2, Linux x86_64, Windows] | ||
- Version of CLI : [e.g. 0.1.0] | ||
- Version of Console : [e.g. 1.22.0] | ||
- CLI source : [e.g. Release binaries, Docker, Local build] | ||
|
||
**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,22 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEAT] Feature request" | ||
labels: triage | ||
assignees: '' | ||
|
||
--- | ||
|
||
Before submitting a feature request, please make sure that you are using the latest version of the CLI and read the [CONTRIBUTING.md](../../CONTRIBUTING.md#suggesting-enhancements) carefully. | ||
|
||
**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. |
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,68 @@ | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: '$RESOLVED_VERSION' | ||
|
||
version-resolver: | ||
major: | ||
labels: | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'minor' | ||
patch: | ||
labels: | ||
- 'patch' | ||
default: minor | ||
|
||
categories: | ||
- title: 'Features' | ||
label: 'enhancement' | ||
- title: 'Bug Fixes' | ||
label: 'bug' | ||
- title: 'Module updates' | ||
label: 'module-upgrade' | ||
- title: 'Dependency updates' | ||
label: 'dependencies' | ||
|
||
exclude-labels: | ||
- 'skip' | ||
|
||
autolabeler: | ||
- label: 'module-upgrade' | ||
title: | ||
- '/\[Bump\].*\[version\]/' | ||
branch: | ||
- '/update_.+/' | ||
- label: 'bug' | ||
title: | ||
- '/.*\[fix\].*/' | ||
- label: 'patch' | ||
title: | ||
- '/.*\[fix\].*/' | ||
- label: 'enhancement' | ||
title: | ||
- '/.*\[feat\].*/' | ||
- label: 'minor' | ||
title: | ||
- '/.*\[feat\].*/' | ||
- label: 'skip' | ||
title: | ||
- '/.*\[skip\].*/' | ||
- label: 'major' | ||
title: | ||
- '/.*\[breaking\].*/' | ||
|
||
replacers: | ||
- search: '/\[feat\]/g' | ||
replace: '' | ||
- search: '/\[fix\]/g' | ||
replace: '' | ||
- search: '/\[skip\]/g' | ||
replace: '' | ||
- search: '/\[breaking\]/g' | ||
replace: '' | ||
|
||
template: | | ||
# What's Changed | ||
$CHANGES | ||
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,34 +1,77 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize, labeled] | ||
|
||
env: | ||
GO_VERSION: 1.22.0 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', 'main') }} | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.ref == format('refs/heads/{0}', 'main') }} | ||
steps: | ||
- uses: release-drafter/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
unit-test: | ||
runs-on: cdk-standard | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22.0 | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: go test | ||
run: go test ./... | ||
|
||
integration-test: | ||
runs-on: cdk-standard | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: run test | ||
run: ./test_final_exec.sh | ||
build-docker: | ||
name: Build and publish conduktor-ctl images | ||
uses: ./.github/workflows/build-docker.yml | ||
secrets: inherit | ||
needs: [unit-test, integration-test] | ||
with: | ||
release: false | ||
push: ${{ github.ref_name == 'main' }} | ||
image_tags: | | ||
type=sha | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
|
||
docker-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE_NAME: "conduktor-ctl" | ||
PLATFORMS: "linux/amd64,linux/arm64" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: ${{ env.PLATFORMS }} | ||
|
||
- uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: ${{ env.PLATFORMS }} | ||
|
||
- uses: docker/metadata-action@v4 | ||
id: docker_meta | ||
with: | ||
images: conduktor/${{ env.IMAGE_NAME }} | ||
tags: type=sha | ||
|
||
- name: Build ${{ env.IMAGE_NAME }} | ||
id: build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: ${{ env.PLATFORMS }} | ||
push: false | ||
file: docker/Dockerfile | ||
tags: ${{ steps.docker_meta.outputs.tags }} | ||
labels: ${{ steps.docker_meta.outputs.labels }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
build-args: | | ||
hash=${{ github.sha }} | ||
version=${{ github.ref_name }} |
Oops, something went wrong.