Bug fix test (#1061)
* fix 腾讯云COS上传配置无效 * Create docker-cicd.yaml * 修复InitDataFailed 打印bug Co-authored-by: tesun <36953434+tesun@users.noreply.github.com> Co-authored-by: task <ms.yangdan@gmail.com> Co-authored-by: task <121913992@qq.com> Co-authored-by: tscuite <tscuite@qq.com> Co-authored-by: tscuite <64051240+tscuite@users.noreply.github.com> Co-authored-by: wyh <yinhua_wu@arcplus.com.cn>
This commit is contained in:
29
.github/workflows/docker-cicd.yaml
vendored
Normal file
29
.github/workflows/docker-cicd.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Docker-CICD
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out branch
|
||||
uses: actions/checkout@v2
|
||||
- name: Login to Aliyun Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ${{ secrets.ALIYUN_REGISTRY }}
|
||||
username: ${{ secrets.ALIYUN_DOCKERHUB_USER }}
|
||||
password: ${{ secrets.ALIYUN_DOCKERHUB_PASSWORD }}
|
||||
- name: Sed Config
|
||||
shell: bash
|
||||
run: |
|
||||
sed -i 's#./entrypoint.sh"#./entrypoint.sh","actions"#g' Dockerfile
|
||||
sed -i "s#COPY build/ /usr/share/nginx/html/#COPY . /opt/gva#g" Dockerfile
|
||||
sed -i 16c"\ && cd /opt/gva/server/ && go mod tidy && cd /opt/gva/web/ && yarn" Dockerfile
|
||||
sed -i "s#open: true#open: false#g" web/vite.config.js
|
||||
make images TAGS_OPT="latest"
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/gva/web:latest
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/gva/server:latest
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/gva/all:latest
|
Reference in New Issue
Block a user