Compare commits

...

7 Commits
v1.08 ... 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
bamanker
c0975a75ed 传递环境变量9
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 09:57:51 +08:00
bamanker
10153898c2 传递环境变量8
Some checks failed
Build Push and Deploy Image / build (push) Failing after 2s
2025-12-26 09:56:48 +08:00
bamanker
8412554d26 传递环境变量7
Some checks failed
Build Push and Deploy Image / build (push) Has been cancelled
2025-12-26 09:51:14 +08:00
bamanker
8555ea3077 传递环境变量6
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1s
2025-12-26 09:50:18 +08:00
bamanker
79471c11a5 传递环境变量5
Some checks failed
Build Push and Deploy Image / build (push) Failing after 1s
2025-12-26 09:46:29 +08:00
2 changed files with 9 additions and 8 deletions

View File

@@ -38,19 +38,20 @@ jobs:
# e.g. refs/tags/v1.0.0 # e.g. refs/tags/v1.0.0
run: | run: |
echo "version=${GITHUB_REF/refs\/tags\/v}" >> $GITHUB_OUTPUT echo "version=${GITHUB_REF/refs\/tags\/v}" >> $GITHUB_OUTPUT
- name: Check java version # - name: Check java version
run: java -version # run: java -version
- name: Set Env Var - name: Set Env Var
env: env:
TAG: ${{ steps.get_version.outputs.version }} APP_TAG: ${{ steps.get_version.outputs.version }}
run: | run: |
export APP_TAG=${{ env.TAG }} | cat ./deployment.yml
# echo APP_TAG=${{ env.TAG }} | # export APP_TAG=$env.TAG
export APP_NAME=${{ env.APP_NAME }} | # echo APP_TAG=${{ env.TAG }} |
echo APP_NAME=${{ env.APP_NAME }} | # export APP_NAME=${{ env.APP_NAME }} |
# echo APP_NAME=${{ env.APP_NAME }} |
- name: Inject Env Var - name: Inject Env Var
run: | run: |
envsubst < .deploy/deployment.yml envsubst < ./deployment.yml
- name: Build with Maven - name: Build with Maven
# 设置Maven执行权限使用maven绝对路径执行打包命令 # 设置Maven执行权限使用maven绝对路径执行打包命令
run: /usr/local/maven/bin/mvn clean package -DskipTests -Pprod run: /usr/local/maven/bin/mvn clean package -DskipTests -Pprod