Skip to content

Commit

Permalink
Changes by create-pull-request action (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: piontec <[email protected]>
  • Loading branch information
piontec and piontec authored Nov 4, 2024
1 parent 488108a commit 33167da
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
28 changes: 14 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
project_name: demo-album-catalog
project_name: demo-album-catalog-pack
builds:
- <<: &build_defaults
binary: demo-album-catalog
binary: demo-album-catalog-pack
main: main.go
env:
- CGO_ENABLED=0
Expand All @@ -25,8 +25,8 @@ archives:
dockers:
- image_templates:

- "ghcr.io/giantswarm/demo-album-catalog:{{ .Env.CURRENT_TAG }}-amd64"
- "ghcr.io/giantswarm/demo-album-catalog:latest-amd64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:{{ .Env.CURRENT_TAG }}-amd64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:latest-amd64"

dockerfile: Dockerfile
use: buildx
Expand All @@ -44,8 +44,8 @@ dockers:
- "templates"
- image_templates:

- "ghcr.io/giantswarm/demo-album-catalog:{{ .Env.CURRENT_TAG }}-arm64"
- "ghcr.io/giantswarm/demo-album-catalog:latest-arm64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:{{ .Env.CURRENT_TAG }}-arm64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:latest-arm64"

dockerfile: Dockerfile
use: buildx
Expand All @@ -63,14 +63,14 @@ dockers:
- "templates"
docker_manifests:

- name_template: "ghcr.io/giantswarm/demo-album-catalog:{{ .Env.CURRENT_TAG }}"
- name_template: "ghcr.io/giantswarm/demo-album-catalog-pack:{{ .Env.CURRENT_TAG }}"
image_templates:
- "ghcr.io/giantswarm/demo-album-catalog:{{ .Env.CURRENT_TAG }}-amd64"
- "ghcr.io/giantswarm/demo-album-catalog:{{ .Env.CURRENT_TAG }}-arm64"
- name_template: "ghcr.io/giantswarm/demo-album-catalog:latest"
- "ghcr.io/giantswarm/demo-album-catalog-pack:{{ .Env.CURRENT_TAG }}-amd64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:{{ .Env.CURRENT_TAG }}-arm64"
- name_template: "ghcr.io/giantswarm/demo-album-catalog-pack:latest"
image_templates:
- "ghcr.io/giantswarm/demo-album-catalog:latest-amd64"
- "ghcr.io/giantswarm/demo-album-catalog:latest-arm64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:latest-amd64"
- "ghcr.io/giantswarm/demo-album-catalog-pack:latest-arm64"

docker_signs:
- cmd: cosign
Expand All @@ -85,13 +85,13 @@ docker_signs:
source:
enabled: true

name_template: "demo-album-catalog_{{ .Env.CURRENT_TAG }}_src"
name_template: "demo-album-catalog-pack_{{ .Env.CURRENT_TAG }}_src"
sboms:
- artifacts: archive
- id: source
artifacts: source
documents:
- "demo-album-catalog_{{ .Env.CURRENT_TAG }}_sbom.spdx.json"
- "demo-album-catalog-pack_{{ .Env.CURRENT_TAG }}_sbom.spdx.json"

release: {}
checksum: {}
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ the CI.

## Features included

- automatically build go binaries, a container image and a Helm chart
- upload build artifacts to GitHub: create a release for the binaries, upload the container image and the Helm chart
to GitHub's OCI registry
- automatically build go binaries, a container image and a Helm chart to GitHub's OCI registry
- included security: vulnerability scans for go sources, generation of SBoM, singing artifacts with `cosign`
- included automated dependency updates based on [renovate](renovatebot.com)
- included linting and validation for multiple types of artifacts, including golang, markdown, Kubernetes objects, ...
10 changes: 5 additions & 5 deletions helm/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# demo-album-catalog
# demo-album-catalog-pack

Chart version 0.1.0, app version 0.1.0

A Helm chart to deploy the sample golang based web service project.

**Homepage:** <https://github.com/giantswarm/demo-album-catalog/>
**Homepage:** <https://github.com/giantswarm/demo-album-catalog-pack/>

## Requirements

Expand All @@ -20,14 +20,14 @@ Use the values below to configure the chart's values.
| autoscaling.minReplicas | int | `3` | Min number of Pods autoscaler can deploy. |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | Pod scale up critieria based on CPU usage. |
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | Pod scale up critieria based on Memory usage. |
| database | object | `{"connectionSecretName":"","name":"demo-album-catalog"}` | Secret that contains database connection details. It has to be present in the same namespace as the Chart is deployed to. Has to have `endpoint`, `username` and `password` keys. May contain `port` key. |
| database | object | `{"connectionSecretName":"","name":"demo-album-catalog-pack"}` | Secret that contains database connection details. It has to be present in the same namespace as the Chart is deployed to. Has to have `endpoint`, `username` and `password` keys. May contain `port` key. |
| database.connectionSecretName | string | `""` | Secret that contains database connection details. It has to be present in the same namespace as the Chart is deployed to. Has to have `endpoint`, `username` and `password` keys. May contain `port` key. |
| database.name | string | `"demo-album-catalog"` | Name of a logical database to use |
| database.name | string | `"demo-album-catalog-pack"` | Name of a logical database to use |
| fullnameOverride | string | `""` | Override the default name generated for this specific chart Release. |
| ginMode | string | `"debug"` | Configure run mode of the gin web framework; can be 'debug' or 'production' |
| image.pullPolicy | string | `"IfNotPresent"` | Configure image pull policy. |
| image.registry | string | `"ghcr.io"` | Set the domain of your container images registry. |
| image.repository | string | `"giantswarm/demo-album-catalog"` | Set the name of the repository within the registry. |
| image.repository | string | `"giantswarm/demo-album-catalog-pack"` | Set the name of the repository within the registry. |
| image.tag | string | `""` | Image tag to use, defaults to .Chart.AppVersion |
| imagePullSecrets | list | `[]` | Configure login secrets for the container images registry. |
| inMemoryStore | bool | `false` | When set to "true", the app doesn't use any database at all and stores all the data in memory only. |
Expand Down
4 changes: 2 additions & 2 deletions helm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"type": "string"
},
"name": {
"default": "demo-album-catalog",
"default": "demo-album-catalog-pack",
"description": "Name of a logical database to use",
"required": [],
"title": "name",
Expand Down Expand Up @@ -106,7 +106,7 @@
"type": "string"
},
"repository": {
"default": "giantswarm/demo-album-catalog",
"default": "giantswarm/demo-album-catalog-pack",
"description": "Set the name of the repository within the registry.",
"required": [],
"title": "repository",
Expand Down

0 comments on commit 33167da

Please sign in to comment.