Compare commits

..

27 Commits

Author SHA1 Message Date
bamanker
e8ac7f9fbc 修改了安装docker方法13
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m56s
2026-01-03 22:59:52 +08:00
bamanker
cb418d8acd 修改了安装docker方法12
Some checks failed
Build Push and Deploy Image / build (push) Failing after 21m9s
2026-01-03 22:33:39 +08:00
bamanker
d4d6064bcd 修改了安装docker方法12
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m59s
2026-01-02 15:22:06 +08:00
bamanker
297ce02549 修改了安装docker方法11
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2026-01-02 00:10:40 +08:00
bamanker
4f7cfe396a 修改了安装docker方法10
Some checks failed
Build Push and Deploy Image / build (push) Failing after 21m14s
2026-01-01 23:43:45 +08:00
bamanker
521ac4d3f6 修改了安装docker方法9
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2026-01-01 22:55:47 +08:00
bamanker
095245b421 修改了安装docker方法8
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m11s
2026-01-01 16:46:08 +08:00
bamanker
af390af277 修改了安装docker方法7
Some checks failed
Build Push and Deploy Image / build (push) Failing after 35m12s
2026-01-01 10:39:29 +08:00
bamanker
3e55783c5f 修改了安装docker方法6
Some checks failed
Build Push and Deploy Image / build (push) Failing after 22m22s
2026-01-01 09:51:58 +08:00
bamanker
b2fba3cac7 修改了安装docker方法5
Some checks failed
Build Push and Deploy Image / build (push) Failing after 29m20s
2025-12-31 23:46:55 +08:00
bamanker
26f6647a4d 修改了安装docker方法4
Some checks failed
Build Push and Deploy Image / build (push) Failing after 20m58s
2025-12-31 22:48:42 +08:00
bamanker
84b6f139b9 修改了安装docker方法3
Some checks failed
Build Push and Deploy Image / build (push) Failing after 21m58s
2025-12-31 10:56:07 +08:00
bamanker
5e865ab425 修改了安装docker方法2
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m17s
2025-12-31 10:53:49 +08:00
bamanker
6b4c1b6676 修改了安装docker方法1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m32s
2025-12-31 10:50:24 +08:00
bamanker
ff654bb606 修改了安装docker方法
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m39s
2025-12-31 10:47:45 +08:00
bamanker
8eaa9fd792 修改安装的docker命令3
Some checks failed
Build Push and Deploy Image / build (push) Failing after 56s
2025-12-31 10:24:14 +08:00
bamanker
c7af2dd52c 修改安装的docker命令2
Some checks failed
Build Push and Deploy Image / build (push) Failing after 55s
2025-12-31 10:22:23 +08:00
bamanker
373b497d37 修改安装的docker命令1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 16s
2025-12-31 10:20:57 +08:00
bamanker
6d1dc22670 修改安装的docker命令
Some checks failed
Build Push and Deploy Image / build (push) Failing after 58s
2025-12-31 10:13:34 +08:00
bamanker
52e4616bb3 安装 tee 命令3 切换ubuntu版本
Some checks failed
Build Push and Deploy Image / build (push) Failing after 4m55s
2025-12-31 10:03:35 +08:00
bamanker
79fba8746f 安装 tee 命令2
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m4s
2025-12-31 09:52:58 +08:00
bamanker
80122ebe57 安装 tee 命令1 2025-12-31 09:50:30 +08:00
bamanker
148672031f 安装 tee 命令
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m0s
2025-12-31 09:39:38 +08:00
bamanker
fdcc48178f Merge remote-tracking branch 'origin/runson-image' into runson-image
Some checks failed
Build Push and Deploy Image / build (push) Failing after 57s
2025-12-31 09:32:18 +08:00
bamanker
1f9029baf1 修改安装docker命令,切换为国内源
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-31 09:31:28 +08:00
bamanker
df57e63c3e 修改安装docker命令,切换为国内源
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m28s
2025-12-31 09:30:32 +08:00
bamanker
d6b67b428b 修改安装docker命令
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m33s
2025-12-31 09:24:50 +08:00

View File

@@ -21,9 +21,9 @@ env:
# 构建 Job
jobs:
build:
runs-on: ubuntu-node24 # 如果host构建 linux_amd64
# container:
# image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
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."
@@ -34,21 +34,28 @@ jobs:
- name: Print env
run: env
- name: Install dependencies
run: apt-get update && apt-get install -y gettext && apt-get install -y maven && apt-get install -y docker.io
run: |
apt-get update &&
apt-get install -y gettext &&
apt-get install -y maven &&
apt-get install -y sudo &&
apt-get install -y iptables
- name: Set up Docker
uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4
- name: Generate maven config
uses: http://139.9.216.111:3000/bamanker/maven-settings-action@v3.1.0
with:
mirrors: '[{"id": "alimaven", "name": "aliyun maven", "mirrorOf": "central", "url": "http://maven.aliyun.com/nexus/content/groups/public/"}]'
# - uses: http://localhost:3000/bamanker/setup-node@v6
# with:
# node-version: 24
# cache: 'npm'
# - run: node -v
# with:
# node-version: 24
# cache: 'npm'
# - run: node -v
# 下载仓库源码依赖node环境因此构建服务器本地需要下载安装node并设置环境变量
# - name: Set up Docker Buildx
# uses: http://139.9.216.111:3000/bamanker/setup-buildx-action@v3
# - name: Set up Docker Buildx
# uses: http://139.9.216.111:3000/bamanker/setup-buildx-action@v3
- name: Checkout repository code
#使用自定义仓库action
@@ -67,8 +74,8 @@ jobs:
run: |
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
echo "now workspace: ${{ github.workspace }}" &&
pwd &&
docker -v
docker version &&
docker --help
# 为其他配置文件注入环境变量
- name: Inject envVar
@@ -105,18 +112,22 @@ jobs:
# 构建并上传镜像 TODO 直接用docker命令操作
- name: Build and push Docker image
# uses: http://139.9.216.111:3000/bamanker/build-push-action@v4 # 获取上一步截取到的版本号,既 1.0.0
# uses: http://139.9.216.111:3000/bamanker/build-push-action@v4 # 获取上一步截取到的版本号,既 1.0.0
#只能这样接收
env:
TAG: ${{ steps.set_envar.outputs.tag }}
run: |
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push .
# with:
# context: .
## platforms: linux/amd64
# file: Dockerfile
# push: true
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
ls &&
docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} . &&
docker image ls
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push.
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
# with:
# context: .
## platforms: linux/amd64
# file: Dockerfile
# push: true
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
#发布到 k8s
- name: Generate kubeconfig