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

build: add s390x arch #960

Merged
merged 1 commit into from
Feb 16, 2022
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
49 changes: 49 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ builds:
- amd64
- arm
- arm64
- s390x
goarm:
- 7
ignore:
- goos: darwin
goarch: s390x
- goos: windows
goarch: s390x
- id: starboard-operator
main: ./cmd/starboard-operator/main.go
binary: starboard-operator
Expand All @@ -30,6 +36,7 @@ builds:
- amd64
- arm
- arm64
- s390x
goarm:
- 7
- id: starboard-scanner-aqua
Expand Down Expand Up @@ -157,23 +164,65 @@ dockers:
- "--label=org.label-schema.vcs=https://github.com/aquasecurity/starboard"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"
- "--platform=linux/arm64"
- image_templates:
- "docker.io/aquasec/starboard:{{ .Version }}-s390x"
- "public.ecr.aws/aquasecurity/starboard:{{ .Version }}-s390x"
use: buildx
goos: linux
dockerfile: build/starboard/Dockerfile
goarch: s390x
ids:
- starboard
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.name={{ .ProjectName }}"
- "--label=org.label-schema.description=Command line interface for Starboard"
- "--label=org.label-schema.vendor=Aqua Security"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs=https://github.com/aquasecurity/starboard"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"
- "--platform=linux/s390x"
- image_templates:
- "docker.io/aquasec/starboard-operator:{{ .Version }}-s390x"
- "public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}-s390x"
use: buildx
goos: linux
dockerfile: build/starboard-operator/Dockerfile
goarch: s390x
ids:
- starboard-operator
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.name=starboard-operator"
- "--label=org.label-schema.description=Keeps Starboard resources updated"
- "--label=org.label-schema.vendor=Aqua Security"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs=https://github.com/aquasecurity/starboard"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"
- "--platform=linux/s390x"
docker_manifests:
- name_template: 'aquasec/starboard:{{ .Version }}'
image_templates:
- 'aquasec/starboard:{{ .Version }}-amd64'
- 'aquasec/starboard:{{ .Version }}-arm64'
- 'aquasec/starboard:{{ .Version }}-s390x'
- name_template: 'public.ecr.aws/aquasecurity/starboard:{{ .Version }}'
image_templates:
- 'public.ecr.aws/aquasecurity/starboard:{{ .Version }}-amd64'
- 'public.ecr.aws/aquasecurity/starboard:{{ .Version }}-arm64'
- 'public.ecr.aws/aquasecurity/starboard:{{ .Version }}-s390x'
- name_template: 'aquasec/starboard-operator:{{ .Version }}'
image_templates:
- 'aquasec/starboard-operator:{{ .Version }}-amd64'
- 'aquasec/starboard-operator:{{ .Version }}-arm64'
- 'aquasec/starboard-operator:{{ .Version }}-s390x'
- name_template: 'public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}'
image_templates:
- 'public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}-amd64'
- 'public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}-arm64'
- 'public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}-s390x'
- name_template: 'aquasec/starboard-scanner-aqua:{{ .Version }}'
image_templates:
- 'aquasec/starboard-scanner-aqua:{{ .Version }}'
Expand Down
11 changes: 11 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,14 @@ spec:
- from: LICENSE
to: .
bin: starboard.exe
- selector:
matchLabels:
os: linux
arch: s390x
{{addURIAndSha "https://github.com/aquasecurity/starboard/releases/download/{{ .TagName }}/starboard_linux_s390x.tar.gz" .TagName | indent 6}}
files:
- from: starboard
to: .
- from: LICENSE
to: .
bin: starboard