Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23,614 changes: 23,614 additions & 0 deletions .github/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23,638 changes: 23,638 additions & 0 deletions .github/social-preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Continuous Integration - GitHub - Container
<!-- markdownlint-disable-next-line first-line-heading -->
<div align="center" width="100%">

# <img src=".github/logo.svg" width="60px" align="center" alt="logo" /> Continuous Integration - GitHub - Container

[![Continuous Integration](https://github.com/hoverkraft-tech/ci-github-container/actions/workflows/__main-ci.yml/badge.svg)](https://github.com/hoverkraft-tech/ci-github-container/actions/workflows/__main-ci.yml)
[![GitHub tag](https://img.shields.io/github/tag/hoverkraft-tech/ci-github-container?include_prereleases=&sort=semver&color=blue)](https://github.com/hoverkraft-tech/ci-github-container/releases/)
[![License](https://img.shields.io/badge/License-MIT-blue)](#license)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)

</div>

Opinionated GitHub Actions and workflows for continuous integration in container (OCI) context

---
Expand All @@ -23,6 +28,8 @@ Opinionated GitHub Actions and workflows for continuous integration in container

#### - [Prune pull requests image tags](actions/docker/prune-pull-requests-image-tags/README.md)

#### - [Sign images](actions/docker/sign-images/README.md)

### Helm

#### - [Generate chart documentation](actions/helm/generate-docs/README.md)
Expand Down
6 changes: 3 additions & 3 deletions actions/docker/get-image-metadata/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: "Get image metadata"
description: "Action to retrieve required metadata to build Docker image"
author: Hoverkraft
author: hoverkraft
branding:
icon: package
color: gray-dark
icon: info
color: blue

outputs:
image:
Expand Down
4 changes: 2 additions & 2 deletions actions/docker/get-image-name/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: "Get image name"
description: "Action to forge the name of a given image including registry, repository and given input image name"
author: Hoverkraft
author: hoverkraft
branding:
icon: tag
color: gray-dark
color: blue

outputs:
image-name:
Expand Down
4 changes: 2 additions & 2 deletions actions/docker/prune-pull-requests-image-tags/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: "Prune pull requests image tags from GitHub Packages"
description: "Action to prune existing package versions related to closed pull requests"
author: Hoverkraft
author: hoverkraft
branding:
icon: delete
color: gray-dark
color: blue

outputs:
deleted-image-tags:
Expand Down
2 changes: 1 addition & 1 deletion actions/helm/generate-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Action to generate documentation for a Helm chart.
It will generate the documentation in the `docs/` directory of the chart.
Mainly using [losisin/helm-docs-github-action](https://github.com/losisin/helm-docs-github-action).
author: Hoverkraft
author: hoverkraft
branding:
icon: book-open
color: blue
Expand Down
2 changes: 1 addition & 1 deletion actions/helm/parse-chart-uri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This action does not requires any permissions.

| **Input** | **Description** | **Default** | **Required** |
| ---------------- | ------------------ | ----------- | ------------ |
| <code>uri</code> | Chart URI to parse | | **true** |
| <code>URI</code> | Chart URI to parse | | **true** |

<!-- end inputs -->
<!-- start outputs -->
Expand Down
4 changes: 2 additions & 2 deletions actions/helm/parse-chart-uri/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ description: |
- `repository`: `ghcr.io/my-org/my-repo/charts/my-application`
- `name`: `my-repo`
- `version`: `0.1.0`
author: Hoverkraft
author: hoverkraft
branding:
icon: link
color: gray-dark
color: blue

inputs:
uri:
Expand Down
4 changes: 2 additions & 2 deletions actions/helm/release-chart/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: |
Action to release a Helm chart to OCI registry.
Supports umbrella charts: if a chart has local dependencies having version 0.0.0,
the action will update those dependencies version with the given tag, then update the Chart.lock accordingly.
author: Hoverkraft
author: hoverkraft
branding:
icon: upload-cloud
color: gray-dark
color: blue

inputs:
oci-registry:
Expand Down
4 changes: 2 additions & 2 deletions actions/helm/test-chart/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: "Test Helm Chart"
description: |
Action to lint and test installing some Helm chart(s).
Mainly using [helm/chart-testing-action](https://github.com/helm/chart-testing-action).
author: Hoverkraft
author: hoverkraft
branding:
icon: check-circle
color: gray-dark
color: blue

inputs:
working-directory:
Expand Down
117 changes: 59 additions & 58 deletions tests/charts/application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,66 +6,67 @@ A Helm chart for Kubernetes

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | mysql | 12.2.1 |
| Repository | Name | Version |
| ------------------------------------ | ----- | ------- |
| <https://charts.bitnami.com/bitnami> | MySQL | 12.2.1 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| application.dbConnection | string | `"mysql"` | |
| application.dbDatabase | string | `"test"` | |
| application.dbHost | string | `"mysql"` | |
| application.dbPassword | string | `"test"` | |
| application.dbPort | int | `3306` | |
| application.dbUsername | string | `"test"` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| fullnameOverride | string | `""` | |
| image.digest | string | `"sha256:da3b65f32ea75f8041079d220b72da4f605738996256a7dc32715424cc117271"` | |
| image.pullPolicy | string | `"Always"` | |
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"hoverkraft-tech/ci-github-container/application-test"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| mysql.auth.database | string | `"test"` | |
| mysql.auth.password | string | `"test"` | |
| mysql.auth.rootPassword | string | `"root"` | |
| mysql.auth.username | string | `"test"` | |
| mysql.enabled | bool | `false` | |
| mysql.fullnameOverride | string | `"mysql"` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| replicaCount | int | `1` | |
| resources.limits.cpu | string | `"100m"` | |
| resources.limits.memory | string | `"128Mi"` | |
| resources.requests.cpu | string | `"100m"` | |
| resources.requests.memory | string | `"128Mi"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| securityContext.readOnlyRootFilesystem | bool | `true` | |
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `10001` | |
| securityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
| service.port | int | `8080` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| tolerations | list | `[]` | |
| Key | Type | Default | Description |
| ------------------------------------------ | ------ | --------------------------------------------------------------------------- | ----------- |
| affinity | object | `{}` | |
| application.dbConnection | string | `"mysql"` | |
| application.dbDatabase | string | `"test"` | |
| application.dbHost | string | `"mysql"` | |
| application.dbPassword | string | `"test"` | |
| application.dbPort | int | `3306` | |
| application.dbUsername | string | `"test"` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| fullnameOverride | string | `""` | |
| image.digest | string | `"sha256:da3b65f32ea75f8041079d220b72da4f605738996256a7dc32715424cc117271"` | |
| image.pullPolicy | string | `"Always"` | |
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"hoverkraft-tech/ci-github-container/application-test"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| mysql.auth.database | string | `"test"` | |
| mysql.auth.password | string | `"test"` | |
| mysql.auth.rootPassword | string | `"root"` | |
| mysql.auth.username | string | `"test"` | |
| mysql.enabled | bool | `false` | |
| mysql.fullnameOverride | string | `"mysql"` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| replicaCount | int | `1` | |
| resources.limits.cpu | string | `"100m"` | |
| resources.limits.memory | string | `"128Mi"` | |
| resources.requests.cpu | string | `"100m"` | |
| resources.requests.memory | string | `"128Mi"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| securityContext.readOnlyRootFilesystem | bool | `true` | |
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `10001` | |
| securityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
| service.port | int | `8080` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| tolerations | list | `[]` | |

---

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
31 changes: 16 additions & 15 deletions tests/charts/umbrella-application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ An umbrella Helm chart for Kubernetes

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://./charts/app | app | 0.0.0 |
| https://charts.bitnami.com/bitnami | database(mysql) | 12.2.1 |
| Repository | Name | Version |
| ------------------------------------ | --------------- | ------- |
| file://./charts/app | app | 0.0.0 |
| <https://charts.bitnami.com/bitnami> | database(MySQL) | 12.2.1 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| app.enabled | bool | `true` | |
| database.auth.database | string | `"test-umbrella-application"` | |
| database.auth.username | string | `"test-umbrella-application"` | |
| database.enabled | bool | `true` | |
| database.fullnameOverride | string | `"database"` | |
| global.fullnameOverride | string | `""` | |
| global.nameOverride | string | `""` | |

----------------------------------------------
| Key | Type | Default | Description |
| ------------------------- | ------ | ----------------------------- | ----------- |
| app.enabled | bool | `true` | |
| database.auth.database | string | `"test-umbrella-application"` | |
| database.auth.username | string | `"test-umbrella-application"` | |
| database.enabled | bool | `true` | |
| database.fullnameOverride | string | `"database"` | |
| global.fullnameOverride | string | `""` | |
| global.nameOverride | string | `""` | |

---

Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
Loading
Loading