Skip to content

Commit

Permalink
Add infra to build and release on github
Browse files Browse the repository at this point in the history
  • Loading branch information
skoppe committed Mar 22, 2024
1 parent 099898f commit 09eb884
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 2 deletions.
Empty file added .dockerignore
Empty file.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci

on: push

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v3
with:
load: true
push: false
tags: bird2/build:latest
-
name: build
run: |
docker cp $(docker create --name tc bird2/build:latest):/bird/pkg/pkgs/debian-11/bird2_2.15-cznic.1/bird2_2.15-cznic.1_amd64.deb ./bird2_2.15_amd64-debian11.deb && docker rm tc
tar -czf bird2_2.15_amd64-debian11.deb.tar.gz bird2_2.15_amd64-debian11.deb
sha256sum bird2_2.15_amd64-debian11.deb.tar.gz | awk '{ print $1 }' > bird2_2.15_amd64-debian11.deb.tar.gz.sha256
-
name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bird2_2.15_amd64-debian11.deb.tar.gz
bird2_2.15_amd64-debian11.deb.tar.gz.sha256
72 changes: 72 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
FROM debian:11

RUN apt update && \
apt install -y autoconf gcc build-essential bison flex libncurses-dev libreadline-dev libssh-dev python3-pip

RUN pip3 install apkg

RUN apt install -y linuxdoc-tools texlive debhelper docbook-xsl libssh-gcrypt-dev quilt xsltproc linuxdoc-tools-latex texlive-latex-extra git

COPY . /bird

WORKDIR /bird
RUN apkg build



# 1 ls
# 2 cd /bird
# 3 apt install autoconf
# 4 apt update
# 5 apt install autoconf
# 6 apt install gcc
# 7 apt install build-essential
# 8 apt install bison
# 9 autoreconf
# 10 ./configure
# 11 apt install flex
# 12 ./configure
# 13 apt install ncurses
# 14 apt install libncurses
# 15 apt install libncurses-dev
# 16 ./configure
# 17 apt install libreadline-dev
# 18 ./configure
# 19 make
# 20 ls
# 21 ls bin
# 22 ls -la
# 23 apt install libssh
# 24 apt install libssh-dev
# 25 ./configure
# 26 make
# 27 apkg build -Hi
# 28 apt install apktool
# 29 apkg build -Hi
# 30 which apkg
# 31 apt install -y pipx
# 32 apt install pip3
# 33 apt install python3-pip
# 34 pip3 install apkg
# 35 apkg build -Hi
# 36 apkg build --help
# 37 apkg build
# 38 apt install git
# 39 apkg build
# 40 apt install Linuxdoc-Tools
# 41 apt install linuxdoc-tools
# 42 apt install latex
# 43 apt install texlive
# 44 apkg build
# 45 ls pkg/pkgs/debian-11/bird2_2.15.1711119548.099898ff-cznic.1/
# 46 apt install debhelper docbook-xsl libssh-gcrypt-dev quilt xsltproc linuxdoc-tools-latex texlive-latex-extra
# 47 apkg build
# 48 apkg build --help
# 49 git log
# 50 git checkout v2.15
# 51 apkg build
# 52 apt -I pkg/pkgs/debian-11/bird2_2.15.1711120064.adfff448-cznic.1/bird2_2.15.1711120064.adfff448-cznic.1_amd64.de
# 53 dkpg -I pkg/pkgs/debian-11/bird2_2.15.1711120064.adfff448-cznic.1/bird2_2.15.1711120064.adfff448-cznic.1_amd64.de
# 54 dpkg -I pkg/pkgs/debian-11/bird2_2.15.1711120064.adfff448-cznic.1/bird2_2.15.1711120064.adfff448-cznic.1_amd64.de
# 55 dpkg -I pkg/pkgs/debian-11/bird2_2.15.1711120064.adfff448-cznic.1/bird2_2.15.1711120064.adfff448-cznic.1_amd64.dev
# 56 dpkg -I pkg/pkgs/debian-11/bird2_2.15.1711120064.adfff448-cznic.1/bird2_2.15.1711120064.adfff448-cznic.1_amd64.deb
2 changes: 1 addition & 1 deletion nest/proto-hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void ifa_notify(struct proto *p, unsigned flags, struct ifa *a)
* @new: new route for the network
* @old: old route for the network
* @attrs: extended attributes associated with the @new entry
*
*
* The rt_notify() hook is called to inform the protocol instance about
* changes in the connected routing table @table, that is a route @old
* belonging to network @net being replaced by a new route @new with
Expand Down
2 changes: 1 addition & 1 deletion tools/make-dev-archive
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BIRD_VERSION=`grep 'BIRD_VERSION \"' sysdep/config.h | sed '/BIRD_VERSION/!d;s/^
# differentiate dev tarballs from upstream ones
GIT_HASH=$(git rev-parse --short HEAD )
TIMESTAMP=$(date -u +'%s' 2>/dev/null)
VERSION=$BIRD_VERSION.$TIMESTAMP.$GIT_HASH
VERSION=$BIRD_VERSION

REL=bird-$VERSION
T=/tmp/bird
Expand Down

0 comments on commit 09eb884

Please sign in to comment.