Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
berkayoz committed Jul 9, 2024
1 parent 6f37ae6 commit 4d57fa0
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Bug Report
description: Something is not working

body:
- type: markdown
attributes:
value: |
Thank you for submitting an issue. Please fill in the template below
information about the bug you encountered.
- type: textarea
id: summary
attributes:
label: Summary
description: Please explain the bug in a few short sentences.
placeholder: Detail the bug here...
validations:
required: true

- type: textarea
id: what-should-happen
attributes:
label: What Should Happen Instead?
description: Please explain what the expected behavior is.
placeholder: Explain the expected outcome...
validations:
required: true

- type: textarea
id: reproduction-steps
attributes:
label: Reproduction Steps
description: Are you able to consistently reproduce the issue? Please add a list of steps that lead to the bug.
placeholder: "1.\n2.\n"
validations:
required: true

- type: textarea
id: suggest-fix
attributes:
label: Can you suggest a fix?
description: How do you propose that the issue be fixed?
placeholder: Suggest a fix if you have one...

- type: textarea
id: contribute-fix
attributes:
label: Are you interested in contributing with a fix?
description: yes/no, or @mention maintainers. Community contributions are welcome.
placeholder: Are you willing to contribute a fix?

- type: markdown
attributes:
value: Thank you for making the rocks better
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature Request
about: Suggest a new feature
---

<!--
Thank you for submitting a feature request. Please fill the template below
with more details.
-->

#### Summary
<!-- Please explain the feature request in a few short sentences. -->

#### Why is this important?
<!-- Please explain the motivation, how it will be used, etc. -->

#### Are you interested in contributing to this feature?
<!-- yes/no, or @mention maintainers. -->


<!-- Thank you for making Canonical Kubernetes better -->
9 changes: 9 additions & 0 deletions .github/workflows/cla-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: cla-check
on: [pull_request_target]

jobs:
cla-check:
runs-on: ubuntu-latest
steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v1
35 changes: 35 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Push Multiarch Images
on:
pull_request:
push:
branches:
- main

jobs:
build-and-push-arch-specifics:
name: Build Rocks and Push Arch Specific Images
uses: canonical/k8s-workflows/.github/workflows/build_rocks.yaml@main
with:
owner: ${{ github.repository_owner }}
trivy-image-config: "trivy.yaml"
multiarch-awareness: true
cache-action: ${{ (github.event_name == 'push') && 'save' || 'restore' }}
# pinning to use rockcraft 1.3.0 feature `entrypoint-service`
rockcraft-revisions: '{"amd64": "1783", "arm64": "1784"}'
arch-skipping-maximize-build-space: '["arm64"]'
platform-labels: '{"arm64": ["Ubuntu_ARM64_4C_16G_01"]}'
scan-images:
uses: canonical/k8s-workflows/.github/workflows/scan_images.yaml@main
needs: [build-and-push-arch-specifics]
secrets: inherit
with:
upload-result: ${{ github.event_name == 'push' }}
images: ${{ needs.build-and-push-arch-specifics.outputs.images }}
trivy-image-config: ./trivy.yaml
build-and-push-multiarch-manifest:
name: Combine Rocks and Push Multiarch Manifest
uses: canonical/k8s-workflows/.github/workflows/assemble_multiarch_image.yaml@main
needs: [build-and-push-arch-specifics]
with:
rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }}
dry-run: ${{ github.event_name != 'push' }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.rock
*/__pycache__
**/__pycache__
.pytest_cache
.venv
.tox
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @canonical/kubernetes

0 comments on commit 4d57fa0

Please sign in to comment.