This commit is contained in:
@@ -37,9 +37,9 @@ jobs:
|
||||
id: get_version
|
||||
env:
|
||||
REF: ${{ github.ref }} # e.g. refs/tags/v1.0.0
|
||||
run: |
|
||||
TAG=${REF/refs\/tags\/v}
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
run: |
|
||||
TAG=${REF/refs\/tags\/v}
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
- name: Check java version
|
||||
run: java -version
|
||||
- name: Show now path
|
||||
@@ -66,6 +66,8 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user