Compare commits

...

12 Commits

Author SHA1 Message Date
bamanker
58ecbced00 action checkout 修改为v4
Some checks failed
Build Push and Deploy Image / build (push) Failing after 2m21s
2025-12-30 15:37:39 +08:00
bamanker
d0457dc910 fix some bug 1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m29s
2025-12-30 15:28:44 +08:00
bamanker
8359c9c4dd fix some bug
Some checks failed
Build Push and Deploy Image / build (push) Failing after 11s
2025-12-30 15:04:03 +08:00
bamanker
ac8aacbd63 修改了找不到命令的问题 6
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1m10s
2025-12-30 14:15:52 +08:00
bamanker
969002ab42 修改了找不到命令的问题
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-30 13:17:22 +08:00
bamanker
1e1f1526fc 修改了runs on 镜像为ubuntu 5
Some checks failed
Build Push and Deploy Image / build (push) Failing after 8s
2025-12-30 13:15:31 +08:00
bamanker
e381ac36e1 修改了runs on 镜像为ubuntu 4
Some checks failed
Build Push and Deploy Image / build (push) Failing after 5m24s
2025-12-30 12:49:13 +08:00
bamanker
009f6ae5b7 修改了runs on 镜像为ubuntu 2
Some checks failed
Build Push and Deploy Image / build (push) Failing after 3s
2025-12-30 12:32:40 +08:00
bamanker
ea2d7d76af 修改了runs on 镜像为ubuntu 1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 5s
2025-12-30 12:27:47 +08:00
bamanker
5dbb383d07 修改了runs on 镜像为ubuntu
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-30 12:25:06 +08:00
bamanker
699d6cc5c3 修改了runs on 镜像为ubuntu:jammy
Some checks failed
Build Push and Deploy Image / build (push) Failing after 36s
2025-12-30 12:04:00 +08:00
bamanker
499c3058fe 修改了runs on 镜像为node:22-alpine
Some checks failed
Build Push and Deploy Image / build (push) Failing after 55s
2025-12-30 11:32:54 +08:00

View File

@@ -21,16 +21,29 @@ env:
# 构建 Job # 构建 Job
jobs: jobs:
build: build:
runs-on: ubuntu-latest # 如果host构建 linux_amd64 runs-on: ubuntu-node # 如果host构建 linux_amd64
steps: steps:
- run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event." - name: Print system info 1
- run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!" run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Print system info 2
- run: env 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
- name: Install dependencies
run: apt-get update && apt-get install -y gettext
# - uses: http://localhost:3000/bamanker/setup-node@v6
# with:
# node-version: 24
# cache: 'npm'
# - run: node -v
# 下载仓库源码依赖node环境因此构建服务器本地需要下载安装node并设置环境变量 # 下载仓库源码依赖node环境因此构建服务器本地需要下载安装node并设置环境变量
- name: Checkout repository code - name: Checkout repository code
#使用自定义仓库action #使用自定义仓库action
uses: http://localhost:3000/bamanker/checkout@v6 uses: http://139.9.216.111:3000/bamanker/checkout@v4
# 获取 TAG 并设置为环境变量 # 获取 TAG 并设置为环境变量
- name: Get version - name: Get version
@@ -55,7 +68,7 @@ jobs:
# 构建java项目 # 构建java项目
- name: Set up Java - name: Set up Java
uses: http://localhost:3000/bamanker/setup-java@v5 uses: http://139.9.216.111:3000/bamanker/setup-java@v5
with: with:
distribution: 'graalvm' distribution: 'graalvm'
java-version: '25.0.1' java-version: '25.0.1'
@@ -67,7 +80,7 @@ jobs:
# 登录镜像仓库,方便后续上传镜像 # 登录镜像仓库,方便后续上传镜像
- name: Login to Docker Registry - name: Login to Docker Registry
uses: http://localhost:3000/bamanker/login-action@v3 uses: http://139.9.216.111:3000/bamanker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -82,7 +95,7 @@ jobs:
# 构建并上传镜像 # 构建并上传镜像
- name: Build and push Docker image - name: Build and push Docker image
uses: http://localhost:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 1.0.0 uses: http://139.9.216.111:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 1.0.0
#只能这样接收 #只能这样接收
env: env:
TAG: ${{ steps.set_envar.outputs.tag }} TAG: ${{ steps.set_envar.outputs.tag }}
@@ -95,7 +108,7 @@ jobs:
#发布到 k8s #发布到 k8s
- name: Generate kubeconfig - name: Generate kubeconfig
uses: http://localhost:3000/bamanker/kubectl-action@v1.4.0 uses: http://139.9.216.111:3000/bamanker/kubectl-action@v1.4.0
with: with:
base64-kube-config: ${{ secrets.KUBE_CONFIG }} base64-kube-config: ${{ secrets.KUBE_CONFIG }}
- name: Deploy k8s - name: Deploy k8s