From 5affd4aaf59ccddba814393032cc7ea9054b63ba Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 6 Feb 2024 10:52:45 +0100 Subject: [PATCH] workflow: build images in CI --- .github/workflows/build.yaml | 27 +++++++++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c57e39e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,27 @@ +on: + push: + branches: + - master + +jobs: + docker-build: + runs-on: ubuntu-latest + strategy: + matrix: + variant: [bookworm, bullseye] + env: + VERSION: ${{ matrix.variant }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build targets + run: make all + - name: Push targets + run: make tag diff --git a/Dockerfile b/Dockerfile index a2b849c..6677d59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ gawk swig libusb-1.0-0-dev \ pkg-config autoconf golang-go \ python3-distutils python3-dev python3-pip python3-pyelftools \ - eatmydata debhelper && \ + eatmydata debhelper libelf-dev && \ ( \ ( \ . /etc/os-release && \