Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29f1bc8aa1 | ||
|
|
a83edb9479 |
@@ -45,11 +45,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
APP_VERSION: ${{ steps.get_version.outputs.version }}
|
APP_VERSION: ${{ steps.get_version.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
cat ./deployment.yml && export APP_TAG=$APP_VERSION
|
echo "The app version is $APP_VERSION" && echo "APP_TAG=$APP_VERSION" >> $GITHUB_ENV
|
||||||
# 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
|
- name: Inject Env Var
|
||||||
run: |
|
run: |
|
||||||
envsubst < ./deployment.yml
|
envsubst < ./deployment.yml
|
||||||
@@ -76,7 +72,7 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: http://139.9.216.111:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 1.0.0
|
uses: http://139.9.216.111:3000/bamanker/build-push-action@v6 # 获取上一步截取到的版本号,既 1.0.0
|
||||||
env:
|
env:
|
||||||
TAG: ${{ steps.get_version.outputs.version }}
|
TAG: $APP_TAG
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user