Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
25ccfab708 | |||
ed5680f583 |
28
.drone.yml
28
.drone.yml
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user