update ci/cd config
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: 192.168.30.181:3000
|
REGISTRY: repo.yneed.cn
|
||||||
REPO_PATH: wpic-dev/datahub
|
REPO_PATH: wpic-dev/datahub
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
runs-on: podman
|
runs-on: podman
|
||||||
needs: [guard-master-only]
|
needs: [guard-master-only]
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:22-alpine
|
image: docker.io/library/node:24.15.0-alpine
|
||||||
env:
|
env:
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
steps:
|
steps:
|
||||||
@@ -108,7 +108,7 @@ jobs:
|
|||||||
podman build --pull --layers \
|
podman build --pull --layers \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/backend:${{ gitea.ref_name }} \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/backend:${{ gitea.ref_name }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/backend:stable \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/backend:stable \
|
||||||
-f backend/Dockerfile \
|
-f backend/Containerfile \
|
||||||
backend/
|
backend/
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
--ulimit nofile=65536:65536 \
|
--ulimit nofile=65536:65536 \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/frontend:${{ gitea.ref_name }} \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/frontend:${{ gitea.ref_name }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/frontend:stable \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/frontend:stable \
|
||||||
-f frontend/Dockerfile \
|
-f frontend/Containerfile \
|
||||||
frontend/
|
frontend/
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
@@ -151,8 +151,8 @@ jobs:
|
|||||||
podman build --pull --layers \
|
podman build --pull --layers \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:${{ gitea.ref_name }} \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:${{ gitea.ref_name }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:stable \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:stable \
|
||||||
-f docs/tmp/deploy-ref/ci-cd/03-timescaledb-image/Containerfile \
|
-f timescaledb2/Containerfile \
|
||||||
docs/tmp/deploy-ref/ci-cd/03-timescaledb-image/
|
timescaledb2/
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
podman push ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:${{ gitea.ref_name }}
|
podman push ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/timescaledb2:${{ gitea.ref_name }}
|
||||||
@@ -172,8 +172,8 @@ jobs:
|
|||||||
podman build --pull --layers \
|
podman build --pull --layers \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:${{ gitea.ref_name }} \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:${{ gitea.ref_name }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:stable \
|
-t ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:stable \
|
||||||
-f docs/tmp/deploy-ref/ci-cd/04-rabbitmq-image/Containerfile \
|
-f rabbitmq3/Containerfile \
|
||||||
docs/tmp/deploy-ref/ci-cd/04-rabbitmq-image/
|
rabbitmq3/
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
podman push ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:${{ gitea.ref_name }}
|
podman push ${{ env.REGISTRY }}/${{ env.REPO_PATH }}/rabbitmq3:${{ gitea.ref_name }}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ on:
|
|||||||
default: 'all'
|
default: 'all'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: 192.168.30.181:3000
|
REGISTRY: repo.yneed.cn
|
||||||
REPO_PATH: wpic-dev/datahub
|
REPO_PATH: wpic-dev/datahub
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ FROM docker.io/hyperf/hyperf:8.3-alpine-v3.19-swoole
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.title="datahub-backend" \
|
LABEL org.opencontainers.image.title="datahub-backend" \
|
||||||
org.opencontainers.image.vendor="WPIC" \
|
org.opencontainers.image.vendor="WPIC" \
|
||||||
org.opencontainers.image.licenses="MIT" \
|
org.opencontainers.image.licenses="LicenseRef-WPIC-Proprietary" \
|
||||||
org.opencontainers.image.source="https://192.168.30.181:3000/wpic-dev/datahub"
|
org.opencontainers.image.source="https://repo.yneed.cn/wpic-dev/datahub"
|
||||||
|
|
||||||
ARG TIMEZONE=Asia/Shanghai
|
ARG TIMEZONE=Asia/Shanghai
|
||||||
ENV TIMEZONE=${TIMEZONE} \
|
ENV TIMEZONE=${TIMEZONE} \
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
# Stage 1: builder
|
# Stage 1: builder
|
||||||
# ============================================================
|
# ============================================================
|
||||||
FROM docker.io/library/node:22-alpine AS builder
|
FROM docker.io/library/node:24.15.0-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -22,8 +22,8 @@ FROM docker.io/library/nginx:1.27-alpine
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.title="datahub-frontend" \
|
LABEL org.opencontainers.image.title="datahub-frontend" \
|
||||||
org.opencontainers.image.vendor="WPIC" \
|
org.opencontainers.image.vendor="WPIC" \
|
||||||
org.opencontainers.image.licenses="MIT" \
|
org.opencontainers.image.licenses="LicenseRef-WPIC-Proprietary" \
|
||||||
org.opencontainers.image.source="https://192.168.30.181:3000/wpic-dev/datahub"
|
org.opencontainers.image.source="https://repo.yneed.cn/wpic-dev/datahub"
|
||||||
|
|
||||||
ARG TIMEZONE=Asia/Shanghai
|
ARG TIMEZONE=Asia/Shanghai
|
||||||
ENV TIMEZONE=${TIMEZONE}
|
ENV TIMEZONE=${TIMEZONE}
|
||||||
Generated
+2358
-49
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
|||||||
|
FROM docker.io/library/rabbitmq:3.13.7-management
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="datahub-rabbitmq3" \
|
||||||
|
org.opencontainers.image.vendor="WPIC" \
|
||||||
|
org.opencontainers.image.licenses="LicenseRef-WPIC-Proprietary" \
|
||||||
|
org.opencontainers.image.source="https://repo.yneed.cn/wpic-dev/datahub"
|
||||||
|
|
||||||
|
ARG TIMEZONE=Asia/Shanghai
|
||||||
|
ENV TZ=${TIMEZONE}
|
||||||
|
|
||||||
|
# management plugin is pre-enabled in `-management-alpine` upstream tag.
|
||||||
|
# topology (vhost / users / exchanges / queues / bindings) is NOT baked into
|
||||||
|
# the image; it's loaded at runtime from a host-mounted definitions.json
|
||||||
|
# (rendered from SSOT credentials.yml by Round 06 ops scripts) per cicd §A/§B.
|
||||||
|
|
||||||
|
EXPOSE 5672 15672
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
FROM docker.io/timescale/timescaledb:2.27.1-pg16
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="datahub-timescaledb2" \
|
||||||
|
org.opencontainers.image.vendor="WPIC" \
|
||||||
|
org.opencontainers.image.licenses="LicenseRef-WPIC-Proprietary" \
|
||||||
|
org.opencontainers.image.source="https://repo.yneed.cn/wpic-dev/datahub"
|
||||||
|
|
||||||
|
ARG TIMEZONE=Asia/Shanghai
|
||||||
|
ENV TZ=${TIMEZONE} \
|
||||||
|
LANG=en_US.utf8
|
||||||
|
|
||||||
|
COPY initdb/ /docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
EXPOSE 5432
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
-- Triggered on first start only (when $PGDATA is empty).
|
||||||
|
-- Enables TimescaleDB extension in the datahub database.
|
||||||
|
--
|
||||||
|
-- Three-layer defense for extension activation:
|
||||||
|
-- 1. Upstream timescale image: /docker-entrypoint-initdb.d/000_install_timescaledb.sh
|
||||||
|
-- already runs CREATE EXTENSION in $POSTGRES_DB; this file is defensive backup.
|
||||||
|
-- 2. This script: explicit \connect datahub then CREATE EXTENSION.
|
||||||
|
-- 3. backend/migrations/2026_05_07_100000_enable_timescaledb_extension.php
|
||||||
|
-- runs CREATE EXTENSION IF NOT EXISTS on application boot.
|
||||||
|
--
|
||||||
|
-- All three layers are idempotent (IF NOT EXISTS), zero runtime cost.
|
||||||
|
|
||||||
|
\connect datahub
|
||||||
|
|
||||||
|
CREATE EXTENSION IF NOT EXISTS timescaledb;
|
||||||
|
|
||||||
|
-- Future extensions can be added here, e.g.:
|
||||||
|
-- CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
|
||||||
|
-- CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||||
Reference in New Issue
Block a user