传递环境变量11
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled

This commit is contained in:
bamanker
2025-12-26 10:03:49 +08:00
parent 1e81261aef
commit a82e7e9c26
2 changed files with 2 additions and 2 deletions

View File

@@ -44,14 +44,14 @@ jobs:
env:
APP_TAG: ${{ steps.get_version.outputs.version }}
run: |
cat ./deploy/deployment.yml
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