Added CI for building/pushing the docker image.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8e64d18c2b
commit
4d45f2d70a
2 changed files with 19 additions and 7 deletions
14
.drone.yml
Normal file
14
.drone.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
repo: registry.thegibsonhome.net/protonmail-bridge
|
||||||
12
entrypoint
12
entrypoint
|
|
@ -1,20 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Add local user
|
# Add local user
|
||||||
# Either use the PUID/PGID if passed in at runtime or
|
# Either use the PUID/PGID if passed in at runtime or fallback to 9001.
|
||||||
# fallback
|
|
||||||
|
|
||||||
USER_ID=${PUID:-9001}
|
USER_ID=${PUID:-9001}
|
||||||
|
|
||||||
GROUP_ID=${PGID:-$USER_ID}
|
GROUP_ID=${PGID:-$USER_ID}
|
||||||
echo "Starting with UID : $USER_ID:$GROUP_ID"
|
echo "Starting with UID : $USER_ID:$GROUP_ID"
|
||||||
addgroup -g $GROUP_ID proton
|
addgroup -g $GROUP_ID proton
|
||||||
adduser -D -u $USER_ID -G proton -h /var/lib/proton -s /bin/bash proton
|
adduser -D -u $USER_ID -G proton -h /var/lib/proton -s /bin/bash proton
|
||||||
chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton
|
chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton
|
||||||
|
|
||||||
export HOME=/var/lib/proton
|
export HOME=/var/lib/proton
|
||||||
|
|
||||||
# socat will make the conn appear to come from 127.0.0.1
|
# The ProtonMail Bridge expects connections from 127.0.0.1. Use socat to
|
||||||
# ProtonMail Bridge currently expects that.
|
# redirect incoming connections to localhost. Also, this allows us to use
|
||||||
|
# the default SMTP/IMAP ports.
|
||||||
socat TCP-LISTEN:$SMTP_PORT,fork TCP:127.0.0.1:1025 &
|
socat TCP-LISTEN:$SMTP_PORT,fork TCP:127.0.0.1:1025 &
|
||||||
socat TCP-LISTEN:$IMAP_PORT,fork TCP:127.0.0.1:1143 &
|
socat TCP-LISTEN:$IMAP_PORT,fork TCP:127.0.0.1:1143 &
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue