Skip to content

Commit

Permalink
chore(ci): release artifacts and docker images for all supported arch…
Browse files Browse the repository at this point in the history
…itectures.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP authored and poiana committed Nov 15, 2023
1 parent 24727b3 commit fcb626a
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'amd64,arm64'
platforms: 'linux/amd64,linux/arm64,linux/s390x,linux/riscv64,linux/ppc64le'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
66 changes: 66 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ builds:
goarch:
- amd64
- arm64
- s390x
- riscv64
- ppc64le
main: .
flags:
- -v
Expand Down Expand Up @@ -54,16 +57,79 @@ dockers:
- go.sum
- main.go
- Makefile
- use: buildx
goos: linux
goarch: s390x
dockerfile: Dockerfile
image_templates:
- "falcosecurity/syscalls-bumper:latest-s390x"
- "falcosecurity/syscalls-bumper:{{ .Version }}-s390x"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- .git
- go.mod
- go.sum
- main.go
- Makefile
- use: buildx
goos: linux
goarch: riscv64
dockerfile: Dockerfile
image_templates:
- "falcosecurity/syscalls-bumper:latest-riscv64"
- "falcosecurity/syscalls-bumper:{{ .Version }}-riscv64"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- .git
- go.mod
- go.sum
- main.go
- Makefile
- use: buildx
goos: linux
goarch: ppc64le
dockerfile: Dockerfile
image_templates:
- "falcosecurity/syscalls-bumper:latest-ppc64le"
- "falcosecurity/syscalls-bumper:{{ .Version }}-ppc64le"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- .git
- go.mod
- go.sum
- main.go
- Makefile
docker_manifests:
# https://goreleaser.com/customization/docker_manifest/
- name_template: falcosecurity/syscalls-bumper:{{ .Version }}
image_templates:
- falcosecurity/syscalls-bumper:{{ .Version }}-amd64
- falcosecurity/syscalls-bumper:{{ .Version }}-arm64v8
- falcosecurity/syscalls-bumper:{{ .Version }}-s390x
- falcosecurity/syscalls-bumper:{{ .Version }}-riscv64
- falcosecurity/syscalls-bumper:{{ .Version }}-ppc64le
- name_template: falcosecurity/syscalls-bumper:latest
image_templates:
- falcosecurity/syscalls-bumper:latest-amd64
- falcosecurity/syscalls-bumper:latest-arm64v8
- falcosecurity/syscalls-bumper:latest-s390x
- falcosecurity/syscalls-bumper:latest-riscv64
- falcosecurity/syscalls-bumper:latest-ppc64le

release:
github:
Expand Down

0 comments on commit fcb626a

Please sign in to comment.