Compare commits

..

2 Commits
v1.13 ... v1.15

Author SHA1 Message Date
bamanker
a82e7e9c26 传递环境变量11
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 10:03:49 +08:00
bamanker
1e81261aef 传递环境变量10
Some checks failed
Build Push and Deploy Image / build (push) Failing after 2s
2025-12-26 10:02:07 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -42,15 +42,16 @@ jobs:
# run: java -version
- name: Set Env Var
env:
TAG: ${{ steps.get_version.outputs.version }}
APP_TAG: ${{ steps.get_version.outputs.version }}
run: |
export APP_TAG=$env.TAG
cat ./deployment.yml
# export APP_TAG=$env.TAG
# echo APP_TAG=${{ env.TAG }} |
# export APP_NAME=${{ env.APP_NAME }} |
# echo APP_NAME=${{ env.APP_NAME }} |
- name: Inject Env Var
run: |
envsubst < .deploy/deployment.yml
envsubst < ./deployment.yml
- name: Build with Maven
# 设置Maven执行权限使用maven绝对路径执行打包命令
run: /usr/local/maven/bin/mvn clean package -DskipTests -Pprod