mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
administrator
This commit is contained in:
parent
7e3203b6f1
commit
2d099d4e56
3 changed files with 25 additions and 46 deletions
45
.github/workflows/docker.yml
vendored
45
.github/workflows/docker.yml
vendored
|
@ -1,45 +0,0 @@
|
|||
name: Docker Build And Push To Docker Hub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'cmd.sh'
|
||||
- 'entrypoint.sh'
|
||||
tags:
|
||||
- v**
|
||||
jobs:
|
||||
build:
|
||||
name: Build Docker image
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TAGS: latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
name: Check out code
|
||||
|
||||
- name: Set appname
|
||||
run: |
|
||||
repo=${{github.event.repository.name}}
|
||||
arrayrepo=(${repo//-/ })
|
||||
APP_NAME=${arrayrepo[1]}
|
||||
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
|
||||
|
||||
- name: Get all tags when release a tag
|
||||
if: contains(github.ref_name, 'v')
|
||||
run: |
|
||||
tmptag=${{ github.ref_name}}
|
||||
arraytag=(${tmptag//./ })
|
||||
TAGS=${arraytag[0]},${arraytag[0]}.${arraytag[1]},${{ github.ref_name}},latest
|
||||
echo "TAGS=${TAGS}" >> $GITHUB_ENV
|
||||
|
||||
- uses: mr-smithers-excellent/docker-build-push@v5
|
||||
name: Build & push Docker image
|
||||
with:
|
||||
image: websoft9dev/${{env.APP_NAME}}
|
||||
tags: ${{env.TAGS}}
|
||||
registry: docker.io
|
||||
dockerfile: Dockerfile
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
@ -1,3 +1,27 @@
|
|||
# Administrator 管理手册
|
||||
|
||||
## 数据同步
|
||||
|
||||
1. 将 APP 的版本号、最小 CPU、内存、磁盘空间同步到 Contenful 数据表,通过自动化[Github Action](https://github.com/Websoft9/docker-library/blob/main/.github/workflows/requirement_to_contentful.yml)实现。
|
||||
|
||||
2. 将 logo 图片同步到 Stackhub 项目的静态文件夹(/static/images),通过自动化[Github Action](https://github.com/Websoft9/StackHub/blob/main/.github/workflows/logo.yml)实现。
|
||||
|
||||
## AppManage 镜像生成
|
||||
|
||||
发布镜像到 Dockhub 的 websoft9dev 组织下,通过自动化[Github Action](https://github.com/Websoft9/StackHub/blob/main/.github/workflows/appmanage_docker.yml)实现。
|
||||
|
||||
## Release
|
||||
|
||||
### 版本管理
|
||||
|
||||
StackHub 的 release 的版本号由项目主版本号和各微服务和插件版本号构成,详见[版本管理文件](https://github.com/Websoft9/StackHub/blob/main/install/version.json)
|
||||
|
||||
### 成果物
|
||||
|
||||
1. 代码包本身
|
||||
2. CHANGELOG 文件,来记录每次变更的具体内容
|
||||
Release 目前手动进行,将合并 appmanage 和 cockpit 插件的 CHANGELOG
|
||||
|
||||
## 更新与升级
|
||||
|
||||
执行升级脚本(/install/update.sh)来实现自动升级。
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"KOPIA_PLUGIN_VERSION": "0.1.0",
|
||||
"KOPIA_IMAGE_VERSION": "0.13"
|
||||
},
|
||||
"APPSTORE": {
|
||||
"APPMANAGE": {
|
||||
"APPMANAGE_PLUGIN_VERSION": "0.1.0",
|
||||
"APPMANAGE_IMAGE_VERSION": "0.1.0",
|
||||
"REDIS_IMAGE_VERSION": "7.0.11"
|
||||
|
|
Loading…
Reference in a new issue