Skip to content

Commit

Permalink
Merge pull request #11 from dmitry-sinina/buster_packages
Browse files Browse the repository at this point in the history
Packages for debian 10
  • Loading branch information
dmitry-sinina authored Jan 21, 2020
2 parents e93ab0c + 066428f commit 1b5308b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 10 deletions.
47 changes: 37 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,56 @@ jobs:
- stage: stable package
if: branch != master OR tag =~ ^.*$
env: CACHE_NAME=stretch_package
name: Stable Stretch Package
script: &1
- docker build -t yeti-lb -f ./ci/build_stretch.Dockerfile .
- docker run --name yeti-lb yeti-lb && docker commit yeti-lb yeti-lb:built
name: Stable package Debian 9
script: &build_stretch
- docker build -t yeti-lb-9 -f ./ci/build_stretch.Dockerfile .
- docker run --name yeti-lb-9 yeti-lb-9 && docker commit yeti-lb-9 yeti-lb-9:built
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-deploy yeti-lb:built ci/deploy.sh "$API_ENDPOINT"
stretch "${TRAVIS_TAG:0:3}" main /build/*.deb
script: docker run --name yeti-lb-9-deploy yeti-lb-9:built ci/deploy.sh "$API_ENDPOINT" stretch "${TRAVIS_TAG%.*}" main /build/*.deb
on:
tags: true
condition: "$TRAVIS_TAG != *-master*"
repo: yeti-switch/yeti-lb
- stage: stable package
if: branch != master OR tag =~ ^.*$
env: CACHE_NAME=buster_package
name: Stable package Debian 10
script: &build_buster
- docker build -t yeti-lb-10 -f ./ci/build_buster.Dockerfile .
- docker run --name yeti-lb-10 yeti-lb-10 && docker commit yeti-lb-10 yeti-lb-10:built
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-10-deploy yeti-lb-10:built ci/deploy.sh "$API_ENDPOINT" buster "${TRAVIS_TAG%.*}" main /build/*.deb
on:
tags: true
condition: "$TRAVIS_TAG != *-master*"
repo: yeti-switch/yeti-lb

- stage: nightly package
if: branch = master
env: CACHE_NAME=stretch_package
name: Nightly Stretch Package
script: *1
name: Nightly package Debian 9
script: *build_stretch
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-9-deploy yeti-lb-9:built ci/deploy.sh "$API_ENDPOINT" stretch nightly main /build/*.deb
on:
all_branches: true
repo: yeti-switch/yeti-lb

- stage: nightly package
if: branch = master
env: CACHE_NAME=buster_package
name: Nightly package Debian 10
script: *build_buster
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-deploy yeti-lb:built ci/deploy.sh "$API_ENDPOINT"
stretch nightly main /build/*.deb
script: docker run --name yeti-lb-10-deploy yeti-lb-10:built ci/deploy.sh "$API_ENDPOINT" buster nightly main /build/*.deb
on:
all_branches: true
repo: yeti-switch/yeti-lb
19 changes: 19 additions & 0 deletions ci/build_buster.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:buster


RUN apt-get update && apt-get -y dist-upgrade && apt-get -y --no-install-recommends install wget gnupg
RUN wget -O - http://deb.kamailio.org/kamailiodebkey.gpg | apt-key add -
RUN wget http://pkg.yeti-switch.org/key.gpg -O - | apt-key add -
RUN echo "deb http://deb.kamailio.org/kamailio52 buster main" >> /etc/apt/sources.list
RUN echo "deb http://pkg.yeti-switch.org/debian/buster unstable main ext" >> /etc/apt/sources.list
RUN wget --no-check-certificate https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >> /etc/apt/sources.list

RUN apt-get update && apt-get -y --no-install-recommends install build-essential devscripts \
ca-certificates apt-transport-https debhelper fakeroot lintian python-jinja2 \
git-changelog python-setuptools lsb-release curl

ADD . /build/yeti-lb/

WORKDIR /build/yeti-lb/
CMD make package

0 comments on commit 1b5308b

Please sign in to comment.