File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : rophy/patroni-citus-k8s
2+ on :
3+ push :
4+ paths :
5+ - patroni-citus-k8s/**
6+ pull_request :
7+ paths :
8+ - patroni-citus-k8s/**
9+ jobs :
10+ test :
11+ if : github.ref != 'refs/heads/main' || github.event_name == 'pull_request'
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v3
18+ - name : Set up Docker Buildx
19+ uses : docker/setup-buildx-action@v3
20+ - name : Build and push
21+ uses : docker/build-push-action@v5
22+ with :
23+ context : ./patroni-citus-k8s
24+ dockerfile : ./patroni-citus-k8s/Dockerfile
25+ push : false
26+ build-and-push :
27+ if : github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v4
32+ - name : Set variables
33+ run : |
34+ VER=$(cat patroni-citus-k8s/version.txt)
35+ echo "VERSION=$VER" >> $GITHUB_ENV
36+ - name : Set up QEMU
37+ uses : docker/setup-qemu-action@v3
38+ - name : Set up Docker Buildx
39+ uses : docker/setup-buildx-action@v3
40+ - name : Login to Docker Hub
41+ uses : docker/login-action@v3
42+ with :
43+ username : ${{ secrets.DOCKERHUB_USERNAME }}
44+ password : ${{ secrets.DOCKERHUB_TOKEN }}
45+ - name : Build and push
46+ uses : docker/build-push-action@v5
47+ with :
48+ context : ./patroni-citus-k8s
49+ dockerfile : ./patroni-citus-k8s/Dockerfile
50+ push : true
51+ tags : rophy/patroni-citus-k8s:${{ env.VERSION }}
Original file line number Diff line number Diff line change 11# https://github.com/patroni/patroni/blob/master/kubernetes/Dockerfile.citus
22
3- FROM postgres:16.3-bullseye
3+ FROM postgres:16.3-bookworm
44LABEL maintainer=
"Alexander Kukushkin <[email protected] >" 55
66RUN export DEBIAN_FRONTEND=noninteractive \
@@ -28,8 +28,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
2828 && apt-get update -y \
2929 && apt-get -y install postgresql-16-citus-12.1; \
3030 fi \
31- && pip3 install setuptools \
32- && pip3 install 'git+https://github.com/patroni/patroni.git#egg=patroni[kubernetes]' \
31+ && pip3 install --break-system-packages setuptools \
32+ && pip3 install --break-system-packages 'git+https://github.com/patroni/patroni.git#egg=patroni[kubernetes]' \
3333 && PGHOME=/home/postgres \
3434 && mkdir -p $PGHOME \
3535 && chown postgres $PGHOME \
You can’t perform that action at this time.
0 commit comments