Compare commits

..

2 Commits
main ... test

Author SHA1 Message Date
25ccfab708
debug: divide chown and chgrp
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-12-26 23:21:12 +01:00
ed5680f583
debug: check user creation
Some checks failed
continuous-integration/drone/push Build is failing
2024-12-26 23:19:03 +01:00
2 changed files with 2 additions and 29 deletions

View File

@ -91,34 +91,6 @@ depends_on:
- build-amd64
- build-arm64
---
kind: pipeline
type: kubernetes
name: mirror-to-github
node_selector:
kubernetes.io/arch: amd64
federationhq.de/location: Blumendorf
federationhq.de/compute: true
steps:
- name: github-mirror
image: registry.cloud.federationhq.de/drone-github-mirror:latest
pull: always
settings:
GH_TOKEN:
from_secret: GH_TOKEN
GH_REPO: "byterazor/container-imapfilter"
GH_REPO_DESC: "container for running imapfilter"
GH_REPO_HOMEPAGE: "https://gitea.federationhq.de/Container/imapfilter"
depends_on:
- push
---
kind: secret
name: GH_TOKEN
get:
path: github
name: token
---
kind: secret

View File

@ -29,11 +29,12 @@ RUN chmod +x /entryPoint.sh
# add a user for running imapfilter in the container
RUN addgroup imapfilter
RUN adduser -D -G imapfilter imapfilter
RUN cat /etc/passwd
# ensure a homedirectory for the user exists and has correct access rights
RUN mkdir -p /home/imapfilter
RUN chown imapfilter /home/imapfilter
RUN chgrp imapfilter /home/imapfilter
# run everything as the imapfilter user
USER imapfilter