-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yaml
69 lines (63 loc) · 2.43 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
env:
- IPXE_REF=94b39fbe9298160b034c93ca06deb39a907e3b3f
before:
hooks:
- rm -rf pkg/tftp/ipxe
- git clone https://github.com/ipxe/ipxe pkg/tftp/ipxe
- git -C pkg/tftp/ipxe checkout {{ .Env.IPXE_REF }}
- make -C pkg/tftp/ipxe/src -j4 bin/undionly.kpxe
bin-x86_64-efi/ipxe.efi
bin-x86_64-efi/snponly.efi
bin-i386-efi/ipxe.efi
bin-i386-efi/snponly.efi
- make -C pkg/tftp/ipxe/src -j4 CROSS=arm-none-eabi- ARCH=arm32 bin-arm32-efi/snponly.efi
- make -C pkg/tftp/ipxe/src -j4 CROSS=aarch64-linux-gnu- ARCH=arm64 bin-arm64-efi/snponly.efi
builds:
- main: ./cmd/pixie
goos:
- linux
goarch:
- amd64
- arm64
- arm
env:
- CGO_ENABLED=0
dockers:
- goos: linux
goarch: amd64
dockerfile: Containerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
image_templates:
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-amd64
- goos: linux
goarch: arm64
dockerfile: Containerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64
image_templates:
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-arm64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-arm64
- goos: linux
goarch: arm
dockerfile: Containerfile
use: buildx
build_flag_templates:
- --platform=linux/arm
image_templates:
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-arm32
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-arm32
docker_manifests:
- name_template: ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}
image_templates:
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-arm64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:{{ .Tag }}-arm32
- name_template: ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-amd64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-arm64
- ghcr.io/{{ .Env.REPOSITORY_OWNER }}/{{ .ProjectName }}:latest-arm32