Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates on ci/goreleaser #424

Merged
merged 6 commits into from
Jun 17, 2024
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
27 changes: 0 additions & 27 deletions .github/auto-merge-deps.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
---
version: 2
updates:

- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
gomod:
update-types:
- "patch"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
actions:
update-types:
- "minor"
- "patch"
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: './go.mod'
go-version: '1.22'
check-latest: true

- name: Set up QEMU
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: './go.mod'
go-version: '1.22'
check-latest: true

- name: generate docs
Expand All @@ -76,4 +76,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: v1.55
version: v1.59
22 changes: 6 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
push:
tags:
- 'v*'

jobs:
release:
Expand All @@ -14,6 +12,7 @@ jobs:
permissions:
id-token: write
contents: write
packages: write

steps:
- name: Checkout
Expand All @@ -24,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: './go.mod'
go-version: '1.22'
check-latest: true

- name: Set up QEMU
Expand Down Expand Up @@ -54,15 +53,6 @@ jobs:

- uses: chainguard-dev/actions/goimports@main

- name: Tag
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

tag='${{ github.event.inputs.version }}'
git tag --annotate --message "Tag for release $tag" "$tag"
git push origin "refs/tags/$tag"

- name: Login to registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
Expand All @@ -75,4 +65,4 @@ jobs:
with:
args: -v release
env:
GITHUB_TOKEN: "${{ secrets.CI_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ dockers:
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-amd64
- quay.io/helmpack/chart-releaser:latest-amd64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-amd64
- ghcr.io/helm/chart-releaser:latest-amd64
build_flag_templates:
- "--platform=linux/amd64"
- --label=org.label-schema.schema-version=1.0
Expand All @@ -79,6 +81,8 @@ dockers:
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-arm64
- quay.io/helmpack/chart-releaser:latest-arm64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-arm64
- ghcr.io/helm/chart-releaser:latest-arm64
build_flag_templates:
- "--platform=linux/arm64"
- --label=org.label-schema.schema-version=1.0
Expand All @@ -97,6 +101,8 @@ dockers:
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-armv7
- quay.io/helmpack/chart-releaser:latest-armv7
- ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
- ghcr.io/helm/chart-releaser:latest-armv7
build_flag_templates:
- "--platform=linux/arm/v7"
- --label=org.label-schema.schema-version=1.0
Expand All @@ -114,6 +120,8 @@ dockers:
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-s390x
- quay.io/helmpack/chart-releaser:latest-s390x
- ghcr.io/helm/chart-releaser:{{ .Tag }}-s390x
- ghcr.io/helm/chart-releaser:latest-s390x
build_flag_templates:
- "--platform=linux/s390x"
- --label=org.label-schema.schema-version=1.0
Expand All @@ -131,6 +139,8 @@ dockers:
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-ppc64le
- quay.io/helmpack/chart-releaser:latest-ppc64le
- ghcr.io/helm/chart-releaser:{{ .Tag }}-ppc64le
- ghcr.io/helm/chart-releaser:latest-ppc64le
build_flag_templates:
- "--platform=linux/ppc64le"
- --label=org.label-schema.schema-version=1.0
Expand All @@ -148,13 +158,27 @@ docker_manifests:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-armv7
- quay.io/helmpack/chart-releaser:{{ .Tag }}-s390x
- quay.io/helmpack/chart-releaser:{{ .Tag }}-ppc64le
- name_template: ghcr.io/helm/chart-releaser:{{ .Tag }}
image_templates:
- ghcr.io/helm/chart-releaser:{{ .Tag }}-amd64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-arm64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
- ghcr.io/helm/chart-releaser:{{ .Tag }}-s390x
- ghcr.io/helm/chart-releaser:{{ .Tag }}-ppc64le
- name_template: quay.io/helmpack/chart-releaser:latest
image_templates:
- quay.io/helmpack/chart-releaser:latest-amd64
- quay.io/helmpack/chart-releaser:latest-arm64
- quay.io/helmpack/chart-releaser:latest-armv7
- quay.io/helmpack/chart-releaser:latest-s390x
- quay.io/helmpack/chart-releaser:latest-ppc64le
- name_template: ghcr.io/helm/chart-releaser:latest
image_templates:
- ghcr.io/helm/chart-releaser:latest-amd64
- ghcr.io/helm/chart-releaser:latest-arm64
- ghcr.io/helm/chart-releaser:latest-armv7
- ghcr.io/helm/chart-releaser:latest-s390x
- ghcr.io/helm/chart-releaser:latest-ppc64le

signs:
- id: all
Expand Down
2 changes: 1 addition & 1 deletion cr/cmd/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var indexCmd = &cobra.Command{
Update a Helm chart repository index.yaml file based on a the
given GitHub repository's releases.
`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
config, err := config.LoadConfiguration(cfgFile, cmd, getRequiredIndexArgs())
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion cr/cmd/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var uploadCmd = &cobra.Command{
Use: "upload",
Short: "Upload Helm chart packages to GitHub Releases",
Long: `Upload Helm chart packages to GitHub Releases`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
config, err := config.LoadConfiguration(cfgFile, cmd, getRequiredUploadArgs())
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion cr/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Info struct {
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version information",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
v := GetVersionInfo()
res := v.String()
if outputJSON {
Expand Down
Loading