Hopefully this works
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Alex 2022-09-09 15:06:45 -04:00
parent a4a9e5fc74
commit 5541be0b5a
Signed by: technically
GPG Key ID: 46E0A080F69E83F1
3 changed files with 14 additions and 3 deletions

View File

@ -1,11 +1,10 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: exec
name: default name: default
steps: steps:
- name: build and push - name: build and push
image: docker:dind
commands: commands:
- "docker build -t plnk . " - "docker build -t plnk . "
- "echo $PLNK_REGISTRY_PASSWD | docker login --password-stdin --username drone https://plnk.littleoni.net" - "echo $PLNK_REGISTRY_PASSWD | docker login --password-stdin --username drone https://plnk.littleoni.net"

View File

@ -6,7 +6,11 @@ COPY resources /build
RUN apt-get update RUN apt-get update
## Install build tools ## Install build tools
RUN apt-get install -y g++ gcc make patch RUN apt-get install -y \
g++\
gcc\
make\
patch
## Install package dependencies ## Install package dependencies
RUN apt-get install -y \ RUN apt-get install -y \

View File

@ -27,6 +27,14 @@ else
curl -o /etc/asterisk/asterisk.conf https://api.gonk.nicolor.tech/asterisk/$HOSTNAME/$GONK_KEY 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/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 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 touch /var/gonk
fi fi