Skip to content

Commit

Permalink
tweak build to enable contributions from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jul 30, 2024
1 parent 87592e8 commit f511df1
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ jobs:
- uses: chainguard-dev/actions/goimports@main

- name: Login to registry
if: github.repository_owner == 'helm'
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: quay.io
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ snapshot:
dockers:
- goos: linux
goarch: amd64
skip_push: "{{ ne .GitURL 'https://github.com/helm/chart-releaser' | toYaml }}"
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
@@ -77,7 +77,7 @@ dockers:

- goos: linux
goarch: arm64
skip_push: "{{ ne .GitURL 'https://github.com/helm/chart-releaser' | toYaml }}"
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
@@ -97,7 +97,7 @@ dockers:
- goos: linux
goarch: arm
goarm: 7
skip_push: "{{ ne .GitURL 'https://github.com/helm/chart-releaser' | toYaml }}"
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
@@ -116,7 +116,7 @@ dockers:

- goos: linux
goarch: s390x
skip_push: "{{ ne .GitURL 'https://github.com/helm/chart-releaser' | toYaml }}"
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
@@ -135,7 +135,7 @@ dockers:

- goos: linux
goarch: ppc64le
skip_push: "{{ ne .GitURL 'https://github.com/helm/chart-releaser' | toYaml }}"
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
9 changes: 8 additions & 1 deletion magefile.go
Original file line number Diff line number Diff line change
@@ -137,5 +137,12 @@ func Release() error {
return err
}

return sh.RunV("goreleaser", "release", "--clean")
var args []string
args = append(args, "release", "--clean")

if os.Getenv("GITHUB_REPOSITORY_OWNER") != "helm" {
args = append(args, "--skip=docker,homebrew")
}

return sh.RunV("goreleaser", args...)
}

0 comments on commit f511df1

Please sign in to comment.