Skip to content

Commit 59860be

Browse files
committed
More fixes
1 parent 09921a6 commit 59860be

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- upgrade
7+
8+
jobs:
9+
build-and-push:
10+
name: Deploy Docker Upgrade Image
11+
permissions:
12+
contents: read
13+
packages: write
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v6
17+
- name: Build and push
18+
uses: openzim/docker-publish-action@v10
19+
with:
20+
restrict-to: kiwix/borg-backup
21+
image-name: kiwix/borg-backup
22+
manual-tag: upgrade
23+
registries: ghcr.io
24+
credentials:
25+
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
26+
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
27+
repo_description: auto
28+
repo_overview: auto

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55

66
jobs:
7-
build-and-push:
7+
test-build:
88
name: Test Docker Image Build
99
permissions:
1010
contents: read

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:trixie-slim
1+
FROM debian:bookworm-slim
22
LABEL org.opencontainers.image.source=https://github.com/kiwix/borg-backup
33
#
44
# Author : Florent Kaisser <florent.pro@kaisser.name>
@@ -38,7 +38,7 @@ RUN apt-get update && \
3838
python3 python3-pip python3-setuptools openssh-client unzip git cron \
3939
default-mysql-client ca-certificates \
4040
dnsutils bind9utils tar xz-utils gzip bzip2 coreutils grep lsb-release gnupg2 \
41-
python3.13-venv && \
41+
python3.11-venv && \
4242
install -d /usr/share/postgresql-common/pgdg && \
4343
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
4444
. /etc/os-release && \
@@ -52,10 +52,10 @@ RUN apt-get update && \
5252
rm -rf /var/lib/apt/lists/* && \
5353
curl -Ls 'https://github.com/bitwarden/cli/releases/download/v1.22.1/bw-linux-1.22.1.zip' -o bitwarden.zip && \
5454
unzip bitwarden.zip && rm -f bitwarden.zip && chmod +x bw && mv bw /usr/local/bin/ && \
55-
python3.13 -m venv /app/kiwix-python && \
55+
python3.11 -m venv /app/kiwix-python && \
5656
. /app/kiwix-python/bin/activate && \
5757
git clone --depth=1 --branch=master https://github.com/borgbase/borgbase-api-client.git && \
58-
mv borgbase-api-client/borgbase_api_client/ /app/kiwix-python/lib/python3.13/site-packages/ && \
58+
mv borgbase-api-client/borgbase_api_client/ /app/kiwix-python/lib/python3.11/site-packages/ && \
5959
rm -rf borgbase-api-client && \
6060
pip3 install --no-cache-dir --upgrade requests==2.27.1 borgmatic==1.5.24 jsonschema==4.4.0 pyrsistent==0.18.1 && \
6161
curl -sLo /usr/bin/jq "https://github.com/jqlang/jq/releases/download/jq-1.8.1/jq-linux64" && \

0 commit comments

Comments
 (0)