Compare commits

...

6 Commits

Author SHA1 Message Date
bamanker
29f1bc8aa1 传递环境变量20
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 12:00:41 +08:00
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
bamanker
d726553254 传递环境变量17
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 11:03:07 +08:00
bamanker
a66c3341d8 传递环境变量16 2025-12-26 11:01:51 +08:00
bamanker
ade040c622 传递环境变量15
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 10:57:34 +08:00

View File

@@ -31,7 +31,7 @@ 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
@@ -39,15 +39,13 @@ jobs:
echo "version=${GITHUB_REF/refs\/tags\/v}" >> $GITHUB_OUTPUT
# - name: Check java version
# run: java -version
- name: Set Env Var
env:
APP_TAG: ${{ steps.get_version.outputs.version }}
APP_VERSION: ${{ steps.get_version.outputs.version }}
run: |
cat ./deployment.yml && export APP_TAG="${{ env.APP_TAG }}"
# export APP_TAG=$env.TAG
# echo APP_TAG=${{ env.TAG }} |
# export APP_NAME=${{ env.APP_NAME }} |
# echo APP_NAME=${{ env.APP_NAME }} |
echo "The app version is $APP_VERSION" && echo "APP_TAG=$APP_VERSION" >> $GITHUB_ENV
- name: Inject Env Var
run: |
envsubst < ./deployment.yml
@@ -74,7 +72,7 @@ jobs:
- name: Build and push Docker image
uses: http://139.9.216.111:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 1.0.0
env:
TAG: ${{ steps.get_version.outputs.version }}
TAG: $APP_TAG
with:
context: .
platforms: linux/amd64