Skip to content

Commit

Permalink
tweak build to enable contributions from forks
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Bingham <kenneth.bingham@netfoundry.io>
  • Loading branch information
qrkourier committed Sep 16, 2024
1 parent 5265772 commit 809ce5e
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
9 changes: 8 additions & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 809ce5e

Please sign in to comment.