Skip to content

Commit

Permalink
push bird 2.16 and 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugouel committed Jan 3, 2025
1 parent bc6b774 commit 9ad516d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Create and publish a Docker image
on:
push:
branches: [ "main" ]
workflow_run:
workflows: [ "Rust" ]
types:
- completed

env:
REGISTRY: ghcr.io
Expand All @@ -19,7 +15,13 @@ jobs:
matrix:
include:
- dockerfile: ./bird/Dockerfile
image: ghcr.io/nxthdr/bird
image: ghcr.io/nxthdr/bird:2.16
build-args:
- BIRD_VERSION=2.16
- dockerfile: ./bird/Dockerfile
image: ghcr.io/nxthdr/bird:3.0.0
build-args:
- BIRD_VERSION=3.0.0
permissions:
contents: read
packages: write
Expand All @@ -43,7 +45,7 @@ jobs:
with:
images: ${{ matrix.image }}

- name: Sync theme submodule
- name: Sync theme submodule
run: git submodule sync && git submodule update --init --recursive

- name: Build and push Docker image
Expand All @@ -52,9 +54,10 @@ jobs:
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
build-args: ${{ matrix.build-args }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
Expand Down
10 changes: 5 additions & 5 deletions bird/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:24.04 AS builder

ARG BIRD_VERION=2.15.1
ARG BIRD_VERSION=2.15.1
ARG BIRD_PROTOCOLS=bmp,bgp,rpki,static

RUN apt update -y && \
RUN apt update -y && \
apt install -y --no-install-recommends --no-install-suggests \
bison \
ca-certificates \
Expand All @@ -17,10 +17,10 @@ RUN apt update -y && \
make \
&& rm -rf /var/lib/apt/lists/*

RUN curl -o /tmp/bird-${BIRD_VERION}.tar.gz https://bird.network.cz/download/bird-${BIRD_VERION}.tar.gz
RUN tar xvzf /tmp/bird-${BIRD_VERION}.tar.gz -C /tmp
RUN curl -o /tmp/bird-${BIRD_VERSION}.tar.gz https://bird.network.cz/download/bird-${BIRD_VERSION}.tar.gz
RUN tar xvzf /tmp/bird-${BIRD_VERSION}.tar.gz -C /tmp

RUN cd /tmp/bird-${BIRD_VERION} \
RUN cd /tmp/bird-${BIRD_VERSION} \
&& ./configure \
--prefix=/usr/ \
--sysconfdir=/etc/bird/ \
Expand Down

0 comments on commit 9ad516d

Please sign in to comment.