File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ jobs:
3333 - name : Checkout
3434 uses : actions/checkout@v4
3535 with :
36- ref : main
36+ ref : ${{ github.ref_name }}
3737 - name : Prepare
3838 id : prepare
3939 run : |
4040 DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
4141 DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
42- TAG_NAME=python3.11-pg15.8
43- DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME} --tag ${DOCKER_IMAGE}:latest "
42+ TAG_NAME=python3.11-pg17.4
43+ DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
4444 echo ::set-output name=docker_image::${DOCKER_IMAGE}
4545 echo ::set-output name=version::${TAG_NAME}
4646 echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --no-cache \
Original file line number Diff line number Diff line change 1+ FROM python:3.11-slim-bullseye AS python-stage
2+ FROM postgres:17.4-bullseye
3+
4+ ARG DEPENDENCIES=" \
5+ libexpat1-dev \
6+ libffi-dev \
7+ curl \
8+ ca-certificates \
9+ vim \
10+ gettext \
11+ postgresql-17-pgvector \
12+ postgresql-17-age"
13+
14+ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
15+ echo "Asia/Shanghai" > /etc/timezone && \
16+ apt-get update && apt-get install -y --no-install-recommends $DEPENDENCIES && \
17+ apt-get clean all && \
18+ rm -rf /var/lib/apt/lists/*
19+
20+ COPY --from=python-stage /usr/local /usr/local
You can’t perform that action at this time.
0 commit comments