Skip to content

Commit 86a48a6

Browse files
authored
Add signalwire auth for fs-deb-repo (voiceip#9)
1 parent 7c3beaf commit 86a48a6

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.devcontainer/Dockerfile

+10-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,22 @@
55

66
FROM debian:9
77

8-
8+
# https://signalwire.com/docs/signalwire-cli/installation/
9+
ARG SIGNALWIRE_TOKEN=GenerateYourOwnToken
910

1011
# Install git, process tools
11-
RUN apt-get update && apt-get -y install git procps wget tree
12+
RUN apt-get update && apt-get -y install git procps wget tree gnupg2 wget lsb-release apt-transport-https
1213

1314
# Install C++ tools
14-
RUN apt-get -y install build-essential cmake cppcheck valgrind pkg-config lsb-release
15+
RUN apt-get -y install build-essential cmake cppcheck valgrind pkg-config
1516

1617
# Install Freeswitch dev
17-
RUN echo "deb [trusted=yes] http://files.freeswitch.org/repo/deb/freeswitch-1.8/ stretch main" > /etc/apt/sources.list.d/freeswitch.list
18-
RUN wget -O - https://files.freeswitch.org/repo/deb/freeswitch-1.8/fsstretch-archive-keyring.asc | apt-key add -
18+
RUN wget --http-user=signalwire --http-password=$SIGNALWIRE_TOKEN -O - https://freeswitch.signalwire.com/repo/deb/debian-release/signalwire-freeswitch-repo.gpg | apt-key add -
19+
20+
RUN echo "machine freeswitch.signalwire.com login signalwire password $SIGNALWIRE_TOKEN" > /etc/apt/auth.conf
21+
22+
RUN echo "deb https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
23+
RUN echo "deb-src https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
1924

2025
RUN apt-get update && apt-get -y install libfreeswitch-dev librdkafka-dev libz-dev libssl-dev
2126

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
file: .devcontainer/Dockerfile
5353
cache-from: type=local,src=/tmp/.buildx-cache
5454
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
55+
build-args: |
56+
SIGNALWIRE_TOKEN=${{ secrets.SIGNALWIRE_TOKEN }}
57+
5558
- name: Compile
5659
run: |
5760
docker run -i localhost:5000/${{ github.repository }}_build:latest bash -c "cd /mod_event_kafka && make && ls"

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ cmake-build-debug/
6464

6565

6666
#dist
67-
*.deb
67+
*.deb
68+
69+
#vagrant
70+
.vagrant

0 commit comments

Comments
 (0)