From 5918190b79ade3049335aa03b26e9c5687398a50 Mon Sep 17 00:00:00 2001 From: aajkl Date: Fri, 28 Jun 2024 20:55:26 +0800 Subject: [PATCH] update readme and ci --- .github/workflows/dockerimage.yml | 74 ------------------------------- README.md | 12 ++++- 2 files changed, 10 insertions(+), 76 deletions(-) delete mode 100644 .github/workflows/dockerimage.yml diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml deleted file mode 100644 index d27dc80..0000000 --- a/.github/workflows/dockerimage.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: docker-image - -on: - push: - branches: - - master - tags: - - v* - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: docker/setup-qemu-action@v3 - - uses: docker/setup-buildx-action@v3 - - - name: Log in to the ghcr - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Log in to the docker - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: | - ghcr.io/${{ github.repository }} - ${{ github.repository }} - tags: | - type=ref,event=tag - - - name: Docker meta for debug version - if: ${{ github.ref == 'refs/heads/master' }} - id: debug-meta - uses: docker/metadata-action@v5 - with: - images: | - ghcr.io/${{ github.repository }} - ${{ github.repository }} - tags: | - type=sha,format=long,prefix= - - - name: Build and push image - if: ${{ steps.meta.outputs.tags != '' }} - uses: docker/build-push-action@v5 - with: - context: "." - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta.outputs.tags }} - - - name: "[debug version] Build and push image" - if: ${{ github.ref == 'refs/heads/master' }} - uses: docker/build-push-action@v5 - with: - context: "." - platforms: linux/amd64,linux/arm64 - push: true - build-args: | - KEEP_SYMBOL=1 - tags: ${{ steps.debug-meta.outputs.tags }} \ No newline at end of file diff --git a/README.md b/README.md index a9ead2c..d7636cf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # vmihub -[![pipeline status](https://github.com/projecteru2/vmihub/badges/master/pipeline.svg)](https://github.com/projecteru2/vmihub/-/commits/master) +==== +![](https://github.com/projecteru2/vmihub/workflows/test/badge.svg) +![](https://github.com/projecteru2/vmihub/workflows/golangci-lint/badge.svg) -web-related things of eru +virtual machine image hub for ERU # swagger generate swagger @@ -16,8 +18,14 @@ generate swagger ```shell swag init -g cmd/vmihub/main.go -o cmd/vmihub/docs ``` +# 准备redis +常规准备就好 + # 准备数据库 不管是第一次初始化数据库还是后续数据库schema的修改请都参考 [这里](internal/models/migration/README.md) +# 准备s3 +用于存储镜像文件 + # 项目启动 ```shell make