Compare commits

...

2 Commits

Author SHA1 Message Date
bamanker
a83edb9479 传递环境变量19
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 11:15:39 +08:00
bamanker
2bf5e16dcd 传递环境变量18
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 11:12:02 +08:00

View File

@@ -31,19 +31,21 @@ jobs:
# java-version: '25.0.1'
# distribution: 'openjdk'
# cache: 'maven'
#检查java版本
#检查tag
- name: Get version
id: get_version
# e.g. refs/tags/v1.0.0
run: |
echo "version=${GITHUB_REF/refs\/tags\/v}" >> $GITHUB_OUTPUT && echo "APP_TAG=${{ steps.get_version.outputs.version }}"
echo "version=${GITHUB_REF/refs\/tags\/v}" >> $GITHUB_OUTPUT
# - name: Check java version
# run: java -version
- name: Set Env Var
env:
APP_VERSION: ${{ steps.get_version.outputs.version }}
run: |
cat ./deployment.yml && export APP_TAG="${{ steps.get_version.outputs.version }}"
echo "The app version is $APP_VERSION" && export APP_TAG=$APP_VERSION
# export APP_TAG=$env.TAG
# echo APP_TAG=${{ env.TAG }} |
# export APP_NAME=${{ env.APP_NAME }} |