summaryrefslogtreecommitdiff
path: root/.goreleaser.yml
blob: 368823e4935190454bcf278313934c5844deb55c (plain)
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
---
builds:
  - id: tube
    binary: tube
    main: ./cmd/tube/...
    tags:
      - embed
      - static_build
    ldflags: >-
      -w
      -X git.mills.io/prologic/tube.Version={{.Version}}
      -X git.mills.io/prologic/tube.Commit={{.Commit}}
      -X git.mills.io/prologic/tube.Build={{.Date}}
    env:
      - CGO_ENABLED=0
    goos:
      - windows
      - freebsd
      - darwin
      - linux
    goarch:
      - amd64
      - arm64

dockers:
  - image_templates: ["prologic/tube:{{ .Version }}-amd64"]
    use: buildx
    dockerfile: Dockerfile.goreleaser
    build_flag_templates:
      - "--platform=linux/amd64"
    extra_files:
      - ".dockerfiles/entrypoint.sh"
      - ".dockerfiles/config.json"
  - image_templates: ["prologic/tube:{{ .Version }}-arm64v8"]
    use: buildx
    goarch: arm64
    dockerfile: Dockerfile.goreleaser
    build_flag_templates:
      - "--platform=linux/arm64/v8"
    extra_files:
      - ".dockerfiles/entrypoint.sh"
      - ".dockerfiles/config.json"

docker_manifests:
  - name_template: prologic/tube:{{ .Version }}
    image_templates:
      - prologic/tube:{{ .Version }}-amd64
      - prologic/tube:{{ .Version }}-arm64v8

signs:
  - artifacts: checksum
release:
  gitea:
    owner: prologic
    name: tube
  draft: false
gitea_urls:
  api: https://git.mills.io/api/v1/