Skip to content

Commit

Permalink
build: add s390x arch
Browse files Browse the repository at this point in the history
Signed-off-by: skuethe <56306041+skuethe@users.noreply.github.com>
  • Loading branch information
skuethe committed Feb 16, 2022
1 parent 9798d05 commit 543a9cf
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
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

0 comments on commit 543a9cf

Please sign in to comment.