docker build

This commit is contained in:
2025-07-29 22:27:37 +08:00
parent ff2f21f145
commit 747495836f
2 changed files with 18 additions and 24 deletions

View File

@@ -78,4 +78,21 @@ jobs:
run: bash ./patch-ui-pro.zsh
- name: Build
run: pnpm run build
run: pnpm run build
# 1. 登录 registry
- name: Login to private registry
uses: docker/login-action@v3
with:
registry: reg.lijue.net:5888
username: ${{ secrets.REGISTRY_USER }} # 在仓库里事先存好
password: ${{ secrets.REGISTRY_PASSWORD }}
# 2. 构建并推送
- name: Build & push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: reg.lijue.net:5888/docs:latest

View File

@@ -1,23 +0,0 @@
name: Publish Any Commit
on: [push, pull_request]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpx pkg-pr-new publish