diff --git a/.drone.yml b/.drone.yml index 22e40ac..24ebe67 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,10 @@ --- kind: pipeline -type: docker +type: exec name: default steps: - name: build and push - image: docker:dind commands: - "docker build -t plnk . " - "echo $PLNK_REGISTRY_PASSWD | docker login --password-stdin --username drone https://plnk.littleoni.net" diff --git a/Dockerfile b/Dockerfile index 1ac89ae..b799624 100755 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,11 @@ COPY resources /build RUN apt-get update ## Install build tools -RUN apt-get install -y g++ gcc make patch +RUN apt-get install -y \ + g++\ + gcc\ + make\ + patch ## Install package dependencies RUN apt-get install -y \ diff --git a/resources/gonk.sh b/resources/gonk.sh index 518ff1f..8cdd77f 100755 --- a/resources/gonk.sh +++ b/resources/gonk.sh @@ -27,6 +27,14 @@ else curl -o /etc/asterisk/asterisk.conf https://api.gonk.nicolor.tech/asterisk/$HOSTNAME/$GONK_KEY curl -o /etc/asterisk/pjsip.conf https://api.gonk.nicolor.tech/pjsip/$HOSTNAME/$GONK_KEY curl -o /etc/asterisk/modules.conf https://api.gonk.nicolor.tech/modules/$HOSTNAME/$GONK_KEY + + + echo " Setting up VOIPBL..." + curl -o /usr/bin/voipbl.sh https://voipbl.org/voipbl.sh + chmod 700 /usr/bin/voipbl.sh + + + touch /var/gonk fi