WIP
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
This commit is contained in:
parent
a119f831a3
commit
d148b33dc0
4 changed files with 18 additions and 18 deletions
|
@ -1,15 +1,6 @@
|
||||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
||||||
# Make sure to check the documentation at https://goreleaser.com
|
|
||||||
|
|
||||||
# The lines below are called `modelines`. See `:help modeline`
|
|
||||||
# Feel free to remove those if you don't want/need to use them.
|
|
||||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
||||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.gnous.eu/api/v1
|
api: https://git.gnous.eu/api/v1
|
||||||
download: https://git.gnous.eu
|
download: https://git.gnous.eu
|
||||||
# set to true if you use a self-signed certificate
|
|
||||||
skip_tls_verify: false
|
skip_tls_verify: false
|
||||||
|
|
||||||
before:
|
before:
|
||||||
|
@ -32,14 +23,10 @@ builds:
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: tar.gz
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
format_overrides:
|
||||||
name_template: >-
|
-
|
||||||
{{ .ProjectName }}_
|
goos: windows
|
||||||
{{- title .Os }}_
|
format: zip
|
||||||
{{- if eq .Arch "amd64" }}x86_64
|
|
||||||
{{- else if eq .Arch "386" }}i386
|
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
-
|
-
|
||||||
|
@ -51,6 +38,8 @@ nfpms:
|
||||||
maintainer: GnousEU <contact@gnous.eu>
|
maintainer: GnousEU <contact@gnous.eu>
|
||||||
description: A light paste server
|
description: A light paste server
|
||||||
license: AGPLv3
|
license: AGPLv3
|
||||||
|
dependencies:
|
||||||
|
- useradd
|
||||||
formats:
|
formats:
|
||||||
- deb
|
- deb
|
||||||
- rpm
|
- rpm
|
||||||
|
@ -65,6 +54,9 @@ nfpms:
|
||||||
dst: /etc/plakken/env
|
dst: /etc/plakken/env
|
||||||
- src: plakken.service
|
- src: plakken.service
|
||||||
dst: /usr/lib/systemd/system/plakken.service
|
dst: /usr/lib/systemd/system/plakken.service
|
||||||
|
scripts:
|
||||||
|
preinstall: "deployement/goreleaser/preinstall.sh"
|
||||||
|
postremove: "deployement/goreleaser/postremove.sh"
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
algorithm: sha256
|
algorithm: sha256
|
||||||
|
|
1
deployement/goreleaser/postremove.sh
Normal file
1
deployement/goreleaser/postremove.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
userdel -r plakken
|
8
deployement/goreleaser/preinstall.sh
Normal file
8
deployement/goreleaser/preinstall.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
if ! getent passwd plakken > /dev/null; then
|
||||||
|
useradd -r -d /var/lib/plakken -s /sbin/nologin -U plakken
|
||||||
|
fi
|
||||||
|
if ! test -d /var/lib/plakken; then
|
||||||
|
mkdir -p /var/lib/plakken
|
||||||
|
chmod 0750 /var/lib/plakken
|
||||||
|
chown -R plakken:plakken /var/lib/plakken
|
||||||
|
fi
|
|
@ -20,7 +20,6 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- PLAKKEN_REDIS_ADDRESS=redis:6379
|
- PLAKKEN_REDIS_ADDRESS=redis:6379
|
||||||
- POSTGRES_PASSWORD=gitea
|
|
||||||
- PLAKKEN_REDIS_DB=0
|
- PLAKKEN_REDIS_DB=0
|
||||||
- PLAKKEN_URL_LENGTH=5
|
- PLAKKEN_URL_LENGTH=5
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in a new issue