mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
build: update build-and-push.yml.
This commit is contained in:
parent
adba1829c0
commit
1ca395094e
|
|
@ -14,7 +14,7 @@ on:
|
|||
- linux/amd64,linux/arm64
|
||||
jobs:
|
||||
build-and-push-python-pg-to-ghcr:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check Disk Space
|
||||
run: df -h
|
||||
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Prepare
|
||||
id: prepare
|
||||
run: |
|
||||
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
|
||||
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-base
|
||||
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
|
||||
TAG_NAME=python3.11-pg17.4
|
||||
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
|
||||
|
|
@ -50,9 +50,6 @@ jobs:
|
|||
${DOCKER_IMAGE_TAGS} .
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
# Until https://github.com/tonistiigi/binfmt/issues/215
|
||||
image: tonistiigi/binfmt:qemu-v7.0.0-28
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to GitHub Container Registry
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ RUN cd ui && \
|
|||
npm install && \
|
||||
npm run build && \
|
||||
rm -rf ./node_modules
|
||||
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg17.4 AS stage-build
|
||||
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4 AS stage-build
|
||||
|
||||
ARG DEPENDENCIES=" \
|
||||
python3-pip"
|
||||
|
|
@ -29,7 +29,7 @@ RUN python3 -m venv /opt/py3 && \
|
|||
poetry install && \
|
||||
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages
|
||||
|
||||
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg17.4
|
||||
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4
|
||||
ARG DOCKER_IMAGE_TAG=dev \
|
||||
BUILD_AT \
|
||||
GITHUB_COMMIT
|
||||
|
|
|
|||
Loading…
Reference in New Issue