From 27c3ab7b82f62c48edb49be072cd20f1f2e04e64 Mon Sep 17 00:00:00 2001 From: bamanker <27054792@qq.com> Date: Sun, 4 Jan 2026 14:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmount=20source:=20"overlay"?= =?UTF-8?q?=20=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3d8696d..d44cae5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -21,18 +21,23 @@ env: # 构建 Job jobs: build: - runs-on: ubuntu-node22 # 如果host构建 :linux_amd64 + runs-on: ubuntu-node22 # 如果host构建:linux_amd64 # container: # image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest steps: + - name: Print system info 1 run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event." + - name: Print system info 2 run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - name: Print system info 3 run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Print env - run: env + run: env && blkid + - name: Install dependencies run: | apt-get update && @@ -40,7 +45,7 @@ jobs: apt-get install -y maven && apt-get install -y sudo && apt-get install -y iptables && - sudo blkid + - name: Set up Docker uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4 with: @@ -82,8 +87,6 @@ jobs: run: | echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT && echo "now workspace: ${{ github.workspace }}" && - docker version && - docker --help # 为其他配置文件注入环境变量 - name: Inject envVar @@ -128,6 +131,7 @@ jobs: ls && docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} . && docker image ls + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} # ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push. # uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5 # with: