| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- project_name: OliveTin
- version: 2
- before:
- hooks:
- - make service-prep
- - make windows-resources VERSION={{ .Version }}
- builds:
- # id defaults to project_name (OliveTin) — required for notarize.macos defaults.
- - skip: '{{ isEnvSet "GORELEASER_SKIP_BUILD" }}'
- env:
- - CGO_ENABLED=0
- binary: OliveTin
- main: .
- dir: service
- goos:
- - linux
- - darwin
- - freebsd
- goarch:
- - amd64
- - arm64
- - arm
- - riscv64
- goarm:
- - 5 # For old RPIs
- - 6
- - 7
- ignore:
- - goos: darwin
- goarch: arm # Mac does not work on [32bit] arm
- ldflags:
- - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{ .CommitDate }}
- # Built and archived for SignPath, but excluded from the GitHub release upload.
- - id: windows
- skip: '{{ isEnvSet "GORELEASER_SKIP_BUILD" }}'
- env:
- - CGO_ENABLED=0
- binary: OliveTin
- main: .
- dir: service
- goos:
- - windows
- goarch:
- - amd64
- ldflags:
- - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{ .CommitDate }}
- checksum:
- name_template: 'checksums.txt'
- # Exclude the windows archive; signed zip/MSI checksums are added after SignPath.
- ids:
- - default
- - openrc
- snapshot:
- version_template: "{{ .Branch }}-{{ .ShortCommit }}"
- changelog:
- sort: asc
- groups:
- - title: 'Security'
- regexp: '^.*?security(\([[:word:]]+\))??!?:.+$'
- order: 0
- - title: 'Features'
- regexp: '^.*?feat.*?(\([[:word:]]+\))??!?:.+$'
- order: 1
- - title: 'Bug fixes'
- regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
- order: 2
- - title: Others
- order: 999
- filters:
- exclude:
- - '^docs:'
- - '^test:'
- - '^cicd:'
- - '^chore:'
- - '^release:'
- - '^refactor:'
- - '^Merge branch'
- - '^Merge commit from fork'
- archives:
- - id: default
- ids:
- - OliveTin
- formats: tar.gz
- files:
- - config.yaml
- - LICENSE
- - README.md
- - src: Dockerfile.singlearch
- dst: Dockerfile
- - examples/backupScript.sh
- - webui
- - var
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
- wrap_in_directory: true
- - id: windows
- ids:
- - windows
- formats: zip
- files:
- - config.yaml
- - LICENSE
- - README.md
- - src: Dockerfile.singlearch
- dst: Dockerfile
- - examples/backupScript.sh
- - webui
- - var
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
- wrap_in_directory: true
- # dockers_v2: single multi-platform build with buildx; keeps default provenance + SBOM.
- # Replaces legacy dockers + docker_manifests (avoids "is a manifest list" when attestations are on).
- dockers_v2:
- - dockerfile: Dockerfile.multiarches
- images:
- - docker.io/jamesread/olivetin
- - ghcr.io/olivetin/olivetin
- tags:
- - "{{ .Tag }}"
- - latest
- - latest-3k
- platforms:
- - linux/amd64
- - linux/arm64
- extra_files:
- - webui/
- - var/entities/
- - config.yaml
- - var/helper-actions/
- - examples/backupScript.sh
- labels:
- org.opencontainers.image.revision: "{{ .FullCommit }}"
- org.opencontainers.image.version: "{{ .Tag }}"
- sbom: true
- nfpms:
- - id: default
- maintainer: James Read <contact@jread.com>
- description: OliveTin is a web interface for running Linux shell commands.
- homepage: https://github.com/OliveTin/OliveTin
- license: AGPL-3.0
- formats:
- - deb
- - rpm
- bindir: /usr/local/bin/
- file_name_template: '{{ .PackageName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
- contents:
- - src: var/systemd/OliveTin.service
- dst: /etc/systemd/system/OliveTin.service
- - src: webui/
- dst: /var/www/olivetin/
- type: tree
- - src: config.yaml
- dst: /etc/OliveTin/config.yaml
- type: "config|noreplace"
- - src: var/entities/*
- dst: /etc/OliveTin/entities/
- type: "config|noreplace"
- - src: var/manpage/OliveTin.1.gz
- dst: /usr/share/man/man1/OliveTin.1.gz
- - id: openrc
- maintainer: James Read <contact@jread.com>
- description: OliveTin is a web interface for running Linux shell commands.
- homepage: https://github.com/OliveTin/OliveTin
- license: AGPL-3.0
- formats:
- - apk
- bindir: /usr/local/bin/
- file_name_template: '{{ .PackageName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
- contents:
- - src: var/openrc/OliveTin
- dst: /etc/init.d/OliveTin
- # Avoid type: tree for apk — nfpm writes GNU base-256 modes for walked
- # dirs (ModeDir), which apk-tools rejects (#761 / goreleaser/nfpm#1112).
- - src: webui/index.html
- dst: /var/www/olivetin/index.html
- - src: webui/assets/*
- dst: /var/www/olivetin/assets/
- - src: config.yaml
- dst: /etc/OliveTin/config.yaml
- type: "config|noreplace"
- - src: var/entities/*
- dst: /etc/OliveTin/entities/
- type: "config|noreplace"
- - src: var/manpage/OliveTin.1.gz
- dst: /usr/share/man/man1/OliveTin.1.gz
- # Sign and notarize darwin binaries via quill (no macOS runner required).
- # Skipped when MACOS_SIGN_P12 is unset so local/snapshot builds stay unsigned.
- notarize:
- macos:
- - enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
- # Defaults to project_name when omitted; must match builds[].id (also project_name).
- sign:
- certificate: "{{.Env.MACOS_SIGN_P12}}"
- password: "{{.Env.MACOS_SIGN_PASSWORD}}"
- notarize:
- issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
- key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
- key: "{{.Env.MACOS_NOTARY_KEY}}"
- wait: true
- # Apple rejects notary auth tokens with lifetimes over 20m.
- timeout: 20m
- release:
- # Publish immediately without Windows assets; sign-windows uploads signed zip/MSI later.
- draft: false
- # semantic-release's github plugin creates a draft release first (for issue comments);
- # adopt it and replace its placeholder notes rather than creating a second release.
- use_existing_draft: true
- mode: replace
- ids:
- - default
- - openrc
- footer: |
- ## Container images (from GitHub)
- - `docker pull ghcr.io/olivetin/olivetin:{{ .Version }}`
- ## Container images ([on Docker Hub](https://hub.docker.com/r/jamesread/olivetin/tags?page=1&ordering=last_updated))
- - `docker pull docker.io/jamesread/olivetin:{{ .Version }}`
- ## Upgrade warnings, or breaking changes
- - No such issues between the last release and this version.
- ## Useful links
- - [Which download do I need?](https://docs.olivetin.app/install/choose_package.html)
- - [Ask for help and chat with others users in the Discord community](https://discord.gg/jhYWWpNJ3v)
- Thanks for your interest in OliveTin!
|