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

This commit is contained in:
Ada 2024-05-11 14:54:55 +02:00
parent 0c6ebaaf79
commit 5208a63fb4
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
7 changed files with 9 additions and 13 deletions

2
.env
View file

@ -1,4 +1,4 @@
PLAKKEN_LISTEN=:5000 PLAKKEN_LISTEN=:3000
PLAKKEN_REDIS_ADDRESS=localhost:6379 PLAKKEN_REDIS_ADDRESS=localhost:6379
PLAKKEN_REDIS_USER= PLAKKEN_REDIS_USER=
PLAKKEN_REDIS_PASSWORD= PLAKKEN_REDIS_PASSWORD=

View file

@ -52,9 +52,9 @@ nfpms:
- src: plakken.service - src: plakken.service
dst: /usr/lib/systemd/system/plakken.service dst: /usr/lib/systemd/system/plakken.service
scripts: scripts:
preinstall: "deployement/goreleaser/preinstall.sh" preinstall: "deployment/goreleaser/preinstall.sh"
preremove: "deployement/goreleaser/preremove.sh" preremove: "deployment/goreleaser/preremove.sh"
postremove: "deployement/goreleaser/postremove.sh" postremove: "deployment/goreleaser/postremove.sh"
checksum: checksum:
algorithm: sha256 algorithm: sha256

View file

@ -6,7 +6,7 @@ steps:
dockerfile: deployment/docker/Dockerfile dockerfile: deployment/docker/Dockerfile
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm64/v8
registry: https://git.gnous.eu registry: https://git.gnous.eu
tag: ${CI_COMMIT} tag: ${CI_COMMIT_SHA}
username: username:
from_secret: docker_username from_secret: docker_username
password: password:

View file

@ -11,7 +11,7 @@ steps:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
repo: git.gnous.eu/${CI_REPO_OWNER}/plakken repo: git.gnous.eu/${CI_REPO_OWNER}/plakken
dockerfile: docker/Dockerfile dockerfile: deployment/docker/Dockerfile
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm64/v8
registry: https://git.gnous.eu registry: https://git.gnous.eu
tags: tags:

View file

@ -1,5 +1,3 @@
version: "3"
networks: networks:
plakken: plakken:
external: false external: false
@ -7,8 +5,8 @@ networks:
services: services:
server: server:
build: build:
context: ../ context: ../../
dockerfile: docker/Dockerfile dockerfile: deployment/docker/Dockerfile
restart: always restart: always
container_name: plakken container_name: plakken
networks: networks:

View file

@ -1,5 +1,3 @@
version: "3"
networks: networks:
plakken: plakken:
external: false external: false

View file

@ -3,7 +3,7 @@ if ! getent group plakken > /dev/null; then
fi fi
if ! getent passwd plakken > /dev/null; then if ! getent passwd plakken > /dev/null; then
useradd -r -d /var/lib/plakken -s /sbin/nologin -G plakken -c "Plakken server" 111111111111111111 plakken useradd -r -d /var/lib/plakken -s /sbin/nologin -g plakken -c "Plakken server" plakken
fi fi
if ! test -d /var/lib/plakken; then if ! test -d /var/lib/plakken; then
mkdir -p /var/lib/plakken mkdir -p /var/lib/plakken