Skip to content

Commit

Permalink
Add build configuration for Debian 12 Bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-klein committed Oct 28, 2023
1 parent e566638 commit db65781
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-bookworm-image:
name: Build Docker Image for building Ezra Bible App on Debian 12 Bookworm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Check out

- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
dockerfile: docker/Debian12_Bookworm_Dockerfile
image: toklein/ezra-bookworm
tag: latest
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# build-centos8-image:
# name: Build Docker Image for building Ezra Bible App on CentOS 8
# runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions docker/Debian12_Bookworm_Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Dockerfile for Debian 12 Build Enviroment for Ezra Bible App

FROM debian:12

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get install -y dialog apt-utils build-essential libsword-dev libsqlite3-0 libcurl4-gnutls-dev libicu-dev zlib1g-dev \
pkg-config icu-devtools subversion git vim sudo curl python3-software-properties cmake

RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
RUN apt-get update
RUN apt-get install -y nodejs

# Install node 14.17.5
RUN npm install -g n
RUN n 14.17.5

RUN npm install -g electron-packager
RUN npm install -g electron-installer-debian
RUN apt-get install -y unzip

COPY docker/build_debian12_bookworm.sh /build.sh

ENTRYPOINT ["/build.sh"]
12 changes: 12 additions & 0 deletions docker/build_debian12_bookworm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# This script triggers all the steps necessary for building and packaging Ezra Bible App on Linux.

npm run build-linux
npm run deb_bookworm
cp release/packages/*.deb $GITHUB_WORKSPACE/ezra-bible-app_latest.deb

if [ "$GITHUB_EVENT_NAME" = "release" ]; then
node_modules/.bin/sentry-cli --auth-token $SENTRY_TOKEN \
upload-dif -o tobias-klein -p ezra-bible-app \
node_modules/node-sword-interface/build/Release/node_sword_interface.node
fi

0 comments on commit db65781

Please sign in to comment.