Compare commits

...

2 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

View File

@@ -45,11 +45,7 @@ jobs:
env:
APP_VERSION: ${{ steps.get_version.outputs.version }}
run: |
cat ./deployment.yml && export APP_TAG=$APP_VERSION
# 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
@@ -76,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