github.com/miguelangel-nubla/oauth2commander@v0.3.7/.goreleaser.yaml (about) 1 before: 2 hooks: 3 - go mod tidy 4 - go generate ./... 5 builds: 6 - env: 7 - CGO_ENABLED=0 8 goos: 9 - darwin 10 - linux 11 - windows 12 goarch: 13 - amd64 14 - 386 15 - arm64 16 - arm 17 goarm: 18 - 7 19 dockers: 20 - 21 image_templates: 22 - "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-amd64" 23 dockerfile: 'Dockerfile.goreleaser' 24 extra_files: 25 - entrypoint.sh 26 use: buildx 27 build_flag_templates: 28 - "--pull" 29 - "--platform=linux/amd64" 30 - "--label=org.opencontainers.image.created={{.Date}}" 31 - "--label=org.opencontainers.image.title={{.ProjectName}}" 32 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 33 - "--label=org.opencontainers.image.version={{.Version}}" 34 - "--label=org.opencontainers.image.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 35 - "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 36 - 37 image_templates: 38 - "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-armv7" 39 dockerfile: 'Dockerfile.goreleaser' 40 extra_files: 41 - entrypoint.sh 42 use: buildx 43 build_flag_templates: 44 - "--pull" 45 - "--platform=linux/arm/v7" 46 - "--label=org.opencontainers.image.created={{.Date}}" 47 - "--label=org.opencontainers.image.title={{.ProjectName}}" 48 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 49 - "--label=org.opencontainers.image.version={{.Version}}" 50 - "--label=org.opencontainers.image.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 51 - "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 52 - 53 image_templates: 54 - "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-arm64" 55 dockerfile: 'Dockerfile.goreleaser' 56 extra_files: 57 - entrypoint.sh 58 use: buildx 59 build_flag_templates: 60 - "--pull" 61 - "--platform=linux/arm64" 62 - "--label=org.opencontainers.image.created={{.Date}}" 63 - "--label=org.opencontainers.image.title={{.ProjectName}}" 64 - "--label=org.opencontainers.image.revision={{.FullCommit}}" 65 - "--label=org.opencontainers.image.version={{.Version}}" 66 - "--label=org.opencontainers.image.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 67 - "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}" 68 docker_manifests: 69 - 70 name_template: ghcr.io/miguelangel-nubla/{{ .ProjectName }}:latest 71 image_templates: 72 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64 73 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7 74 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64 75 - 76 name_template: ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }} 77 image_templates: 78 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64 79 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7 80 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64 81 - 82 name_template: ghcr.io/miguelangel-nubla/{{.ProjectName}}:v{{ .Major }} 83 image_templates: 84 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64 85 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7 86 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64 87 - 88 name_template: ghcr.io/miguelangel-nubla/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }} 89 image_templates: 90 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64 91 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7 92 - ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64 93 94 # kos: 95 # - repository: ghcr.io/miguelangel-nubla/{{.ProjectName}} 96 # tags: 97 # - latest 98 # - "{{ .Tag }}" 99 # - "v{{ .Major }}" 100 # - "v{{ .Major }}.{{ .Minor }}" 101 # base_image: ubuntu 102 # bare: true 103 # preserve_import_paths: false 104 # platforms: 105 # - linux/amd64 106 # - linux/arm64 107 # - linux/arm/v7 108 archives: 109 - 110 files: 111 - LICENSE* 112 - README* 113 - CHANGELOG* 114 - config.json 115 format: tar.gz 116 name_template: >- 117 {{ .ProjectName }}_ 118 {{- title .Os }}_ 119 {{- if eq .Arch "amd64" }}x86_64 120 {{- else if eq .Arch "386" }}i386 121 {{- else }}{{ .Arch }}{{ end }} 122 {{- if .Arm }}v{{ .Arm }}{{ end }} 123 format_overrides: 124 - goos: windows 125 format: zip 126 checksum: 127 name_template: 'checksums.txt' 128 snapshot: 129 name_template: "{{ incpatch .Version }}-next" 130 changelog: 131 sort: asc 132 filters: 133 exclude: 134 - '^docs:' 135 - '^test:' 136 137 # yaml-language-server: $schema=https://goreleaser.com/static/schema.json 138 # vim: set ts=2 sw=2 tw=0 fo=cnqoj