Compare commits

..

4 Commits
v0.3 ... v0.53

Author SHA1 Message Date
bamanker
a92abc0425 版本号为tag 00000
Some checks failed
Build Push and Deploy Image / build (push) Failing after 14s
2025-12-24 23:57:34 +08:00
bamanker
2c7953a17e 版本号为tag 000
Some checks failed
Build Push and Deploy Image / build (push) Failing after 0s
2025-12-24 23:54:25 +08:00
bamanker
f279baf126 版本号为tag 0
Some checks failed
Build Push and Deploy Image / build (push) Failing after 15s
2025-12-24 23:47:34 +08:00
bamanker
6d86a69c0b 版本号为tag 0
Some checks failed
Build Push and Deploy Image / build (push) Failing after 43s
2025-12-24 23:26:30 +08:00

View File

@@ -35,7 +35,11 @@ jobs:
#检查java版本
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${{ env.TAG }}
env:
REF: ${{ github.ref }} # e.g. refs/tags/v1.0.0
run: |
TAG=${REF/refs\/tags\/v}
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Check java version
run: java -version
- name: Show now path
@@ -53,7 +57,7 @@ jobs:
# 这里也可以通过 secrets 传入,后面再介绍
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# 获取时间戳,用于设置镜像 TAG 版本
# 获取时间戳
- name: Get datetime
id: datetime
run: |
@@ -62,12 +66,14 @@ jobs:
# 构建并上传镜像
- name: Build and push Docker image
uses: http://139.9.216.111:3000/bamanker/build-push-action@v6
env:
TAG: ${{ steps.get_tag.outputs.tag }} # 获取上一步截取到的版本号,既 1.0.0
with:
context: .
platforms: linux/amd64
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get_version.outputs.VERSION }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:{{ env.TAG }}
- name: k8s Check and Apply New Deployment