github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/.goreleaser.nightly.yml (about) 1 --- 2 builds: 3 - main: "./cmd/spicedb" 4 env: 5 - "CGO_ENABLED=0" 6 goos: 7 - "linux" 8 goarch: 9 - "amd64" 10 - "arm64" 11 mod_timestamp: "{{ .CommitTimestamp }}" 12 ldflags: 13 - "-s -w" 14 - "-X github.com/jzelinskie/cobrautil/v2.Version=v{{ .Version }}" 15 dockers: 16 # AMD64 17 - image_templates: 18 - &amd_image_quay "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64" 19 - &amd_image_gh "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64" 20 - &amd_image_dh "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64" 21 dockerfile: &dockerfile "Dockerfile.release" 22 goos: "linux" 23 goarch: "amd64" 24 use: "buildx" 25 build_flag_templates: 26 - "--platform=linux/amd64" 27 # AMD64 (debug) 28 - image_templates: 29 - &amd_debug_image_quay "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64-debug" 30 - &amd_debug_image_gh "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64-debug" 31 - &amd_debug_image_dh "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-amd64-debug" 32 dockerfile: &dockerfile "Dockerfile.release" 33 goos: "linux" 34 goarch: "amd64" 35 use: "buildx" 36 build_flag_templates: 37 - "--platform=linux/amd64" 38 - "--build-arg=BASE=cgr.dev/chainguard/busybox" 39 # ARM64 40 - image_templates: 41 - &arm_image_quay "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64" 42 - &arm_image_gh "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64" 43 - &arm_image_dh "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64" 44 dockerfile: *dockerfile 45 goos: "linux" 46 goarch: "arm64" 47 use: "buildx" 48 build_flag_templates: 49 - "--platform=linux/arm64" 50 # ARM64 (debug) 51 - image_templates: 52 - &arm_debug_image_quay "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64-debug" 53 - &arm_debug_image_gh "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64-debug" 54 - &arm_debug_image_dh "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-arm64-debug" 55 dockerfile: *dockerfile 56 goos: "linux" 57 goarch: "arm64" 58 use: "buildx" 59 build_flag_templates: 60 - "--platform=linux/arm64" 61 - "--build-arg=BASE=cgr.dev/chainguard/busybox" 62 docker_manifests: 63 # Quay 64 - name_template: "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}" 65 image_templates: [*amd_image_quay, *arm_image_quay] 66 - name_template: "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest" 67 image_templates: [*amd_image_quay, *arm_image_quay] 68 # GitHub Registry 69 - name_template: "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}" 70 image_templates: [*amd_image_gh, *arm_image_gh] 71 - name_template: "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest" 72 image_templates: [*amd_image_gh, *arm_image_gh] 73 # Docker Hub 74 - name_template: "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}" 75 image_templates: [*amd_image_dh, *arm_image_dh] 76 - name_template: "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest" 77 image_templates: [*amd_image_dh, *arm_image_dh] 78 79 # Debug Images: 80 81 # Quay (debug) 82 - name_template: "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-debug" 83 image_templates: [*amd_debug_image_quay, *arm_debug_image_quay] 84 - name_template: "quay.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest-debug" 85 image_templates: [*amd_debug_image_quay, *arm_debug_image_quay] 86 # GitHub Registry 87 - name_template: "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-debug" 88 image_templates: [*amd_debug_image_gh, *arm_debug_image_gh] 89 - name_template: "ghcr.io/authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest-debug" 90 image_templates: [*amd_debug_image_gh, *arm_debug_image_gh] 91 # Docker Hub 92 - name_template: "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:v{{ .Version }}-debug" 93 image_templates: [*amd_debug_image_dh, *arm_debug_image_dh] 94 - name_template: "authzed/spicedb{{ if .IsNightly }}-git{{ end }}:latest-debug" 95 image_templates: [*amd_debug_image_dh, *arm_debug_image_dh] 96 checksum: 97 name_template: "checksums.txt" 98 snapshot: 99 name_template: "{{ incpatch .Version }}-next" 100 nightly: 101 name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}"