build: update build-and-push.yml.
This commit is contained in:
parent
adba1829c0
commit
1ca395094e
@ -14,7 +14,7 @@ on:
|
|||||||
- linux/amd64,linux/arm64
|
- linux/amd64,linux/arm64
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-python-pg-to-ghcr:
|
build-and-push-python-pg-to-ghcr:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check Disk Space
|
- name: Check Disk Space
|
||||||
run: df -h
|
run: df -h
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Prepare
|
- name: Prepare
|
||||||
id: prepare
|
id: prepare
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-python-pg
|
DOCKER_IMAGE=ghcr.io/1panel-dev/maxkb-base
|
||||||
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
|
DOCKER_PLATFORMS=${{ github.event.inputs.architecture }}
|
||||||
TAG_NAME=python3.11-pg17.4
|
TAG_NAME=python3.11-pg17.4
|
||||||
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
|
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
|
||||||
@ -50,9 +50,6 @@ jobs:
|
|||||||
${DOCKER_IMAGE_TAGS} .
|
${DOCKER_IMAGE_TAGS} .
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
|
|||||||
@ -5,7 +5,7 @@ RUN cd ui && \
|
|||||||
npm install && \
|
npm install && \
|
||||||
npm run build && \
|
npm run build && \
|
||||||
rm -rf ./node_modules
|
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=" \
|
ARG DEPENDENCIES=" \
|
||||||
python3-pip"
|
python3-pip"
|
||||||
@ -29,7 +29,7 @@ RUN python3 -m venv /opt/py3 && \
|
|||||||
poetry install && \
|
poetry install && \
|
||||||
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages
|
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 \
|
ARG DOCKER_IMAGE_TAG=dev \
|
||||||
BUILD_AT \
|
BUILD_AT \
|
||||||
GITHUB_COMMIT
|
GITHUB_COMMIT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user