WIP
This commit is contained in:
parent
bbac53c2d7
commit
dec95cb8be
3 changed files with 6 additions and 23 deletions
|
@ -48,11 +48,10 @@ nfpms:
|
||||||
file_name_template: "{{ .ConventionalFileName }}"
|
file_name_template: "{{ .ConventionalFileName }}"
|
||||||
vendor: GnousEU
|
vendor: GnousEU
|
||||||
homepage: https://git.gnous.eu/plakken/
|
homepage: https://git.gnous.eu/plakken/
|
||||||
maintainer: Ada <ada@gnous.eu>
|
maintainer: GnousEU <contact@gnous.eu>
|
||||||
description: A light paste server
|
description: A light paste server
|
||||||
license: AGPLv3
|
license: AGPLv3
|
||||||
formats:
|
formats:
|
||||||
- apk
|
|
||||||
- deb
|
- deb
|
||||||
- rpm
|
- rpm
|
||||||
- archlinux
|
- archlinux
|
||||||
|
|
|
@ -1,24 +1,8 @@
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: release
|
||||||
image: golang:1.22
|
image: goreleaser/goreleaser
|
||||||
commands:
|
commands:
|
||||||
- go mod download
|
- goreleaser release
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o plakken-linux-amd64 # Enable static binary, target Linux, remove debug information and strip binary
|
secrets: [ release_token ]
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o plakken-linux-arm64
|
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o plakken-linux-arm
|
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o plakken-windows-amd64.exe
|
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o plakken-windows-arm64.exe
|
|
||||||
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o plakken-windows-arm.exe
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
- name: Release
|
|
||||||
image: woodpeckerci/plugin-gitea-release
|
|
||||||
settings:
|
|
||||||
base_url: https://git.gnous.eu
|
|
||||||
files:
|
|
||||||
- "plakken*"
|
|
||||||
api_key:
|
|
||||||
from_secret: release_token
|
|
||||||
target: main
|
|
||||||
when:
|
|
||||||
event: tag
|
|
|
@ -12,9 +12,9 @@ ExecStart=/usr/bin/plakken
|
||||||
|
|
||||||
EnvironmentFile=/etc/plakken/env
|
EnvironmentFile=/etc/plakken/env
|
||||||
|
|
||||||
NoNewPrivileges=yes
|
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
|
NoNewPrivileges=yes
|
||||||
RestrictNamespaces=true
|
RestrictNamespaces=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
|
|
Loading…
Reference in a new issue