Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d86a69c0b |
@@ -2,9 +2,9 @@ name: Build Push and Deploy Image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
#tag 触发
|
# #tag 触发
|
||||||
tags:
|
# tags:
|
||||||
- 'v*'
|
# - 'v*'
|
||||||
# 分支触发
|
# 分支触发
|
||||||
# branches:
|
# branches:
|
||||||
# - main
|
# - main
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
#检查java版本
|
#检查java版本
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${{ env.TAG }}
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
- name: Check java version
|
- name: Check java version
|
||||||
run: java -version
|
run: java -version
|
||||||
- name: Show now path
|
- name: Show now path
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get_version.outputs.VERSION }}
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:{{ steps.get_version.outputs.VERSION }}
|
||||||
|
|
||||||
|
|
||||||
- name: k8s Check and Apply New Deployment
|
- name: k8s Check and Apply New Deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user