mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-07-02 04:39:23 +00:00
Update project version to 0.0.0 in package.json
, enhance README.md
with deployment badge, and modify Docker publish workflow to trigger on both main
and develop
branches.
This commit is contained in:
parent
f703bb2a8b
commit
fad9867637
14
.github/workflows/docker-publish.yml
vendored
14
.github/workflows/docker-publish.yml
vendored
@ -2,10 +2,11 @@ name: Docker Build and Push
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "develop" ]
|
||||||
tags: [ "v*.*.*" ]
|
tags: [ "v*.*.*" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "develop" ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
@ -26,6 +27,9 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Show generated image tags
|
||||||
|
run: echo "${{ steps.meta.outputs.tags }}"
|
||||||
|
|
||||||
- name: Log in to Container registry
|
- name: Log in to Container registry
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@ -44,8 +48,10 @@ jobs:
|
|||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha,format=short
|
type=semver,pattern={{major}}
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=sha,format=long
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# Classworks KV
|
# Classworks KV
|
||||||
[Classworks](https://cs.houlangs.com)用于班级大屏的作业板小工具
|
[Classworks](https://cs.houlangs.com)用于班级大屏的作业板小工具
|
||||||
|
|
||||||
|
|
||||||
|
[](https://app.rainyun.com/apps/rca/store/6229/wuyuan_)
|
||||||
|
|
||||||
## 文档
|
## 文档
|
||||||
|
|
||||||
[Classworks 文档](https://docs.wuyuan.dev)
|
[Classworks 文档](https://docs.wuyuan.dev)
|
||||||
@ -11,3 +14,4 @@ This project is licensed under the **GNU AGPL v3.0**.
|
|||||||
|
|
||||||
Copyright (C) 2025 **Sunwuyuan** (<https://wuyuan.dev>)
|
Copyright (C) 2025 **Sunwuyuan** (<https://wuyuan.dev>)
|
||||||
See [LICENSE](./LICENSE) for details.
|
See [LICENSE](./LICENSE) for details.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ClassworksKV",
|
"name": "ClassworksKV",
|
||||||
"version": "1.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./bin/www",
|
"start": "node ./bin/www",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user