Compare commits

..

2 Commits
test ... main

Author SHA1 Message Date
c9dd57be8e
build: mirror to github
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-27 15:29:13 +01:00
36d406ee71
fix: divide chown and chgrp
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-26 23:22:43 +01:00
2 changed files with 29 additions and 2 deletions

View File

@ -91,6 +91,34 @@ 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,12 +29,11 @@ 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