Compare commits
7 Commits
v3.6.0-nat
...
v3.6.6-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93a1aa6465 | ||
|
|
6adc7bc789 | ||
|
|
899beb46ff | ||
|
|
d78dd16a8d | ||
|
|
cefc01220d | ||
|
|
a9a18c13b6 | ||
|
|
b0e021e0a0 |
@@ -21,7 +21,7 @@ env:
|
||||
# 构建 Job
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-node # 如果host构建 :linux_amd64
|
||||
runs-on: ubuntu-node24 # 如果host构建 :linux_amd64
|
||||
steps:
|
||||
- name: Print system info 1
|
||||
run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
@@ -32,15 +32,22 @@ jobs:
|
||||
- name: Print env
|
||||
run: env
|
||||
- name: Install dependencies
|
||||
run: apt-get update && apt-get install -y gettext
|
||||
run: apt-get update && apt-get install -y gettext && apt-get install -y maven && apt-get install -y docker.io
|
||||
- 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
|
||||
# - uses: http://localhost:3000/bamanker/setup-node@v6
|
||||
# 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: Checkout repository code
|
||||
#使用自定义仓库action
|
||||
uses: http://139.9.216.111:3000/bamanker/checkout@v4
|
||||
@@ -68,7 +75,7 @@ jobs:
|
||||
|
||||
# 构建java项目
|
||||
- name: Set up Java
|
||||
uses: http://139.9.216.111:3000/bamanker/setup-java@v5
|
||||
uses: http://139.9.216.111:3000/bamanker/setup-graalvm@v1
|
||||
with:
|
||||
distribution: 'graalvm'
|
||||
java-version: '25.0.1'
|
||||
@@ -95,7 +102,7 @@ jobs:
|
||||
|
||||
# 构建并上传镜像
|
||||
- name: Build and push Docker image
|
||||
uses: http://139.9.216.111:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 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 }}
|
||||
|
||||
Reference in New Issue
Block a user