This commit is contained in:
parent
a4a9e5fc74
commit
5541be0b5a
@ -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"
|
||||||
|
@ -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 \
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user