Compare commits

...

2 Commits
v1.04 ... v1.05

Author SHA1 Message Date
bamanker
a2cea3ca9a 传递环境变量1
Some checks failed
Build Push and Deploy Image / build (push) Failing after 2s
2025-12-26 09:36:22 +08:00
bamanker
b37172331e 传递环境变量
Some checks failed
Build Push and Deploy Image / build (push) Failing after 6s
2025-12-26 09:31:29 +08:00

View File

@@ -43,10 +43,11 @@ jobs:
- name: Set Env Var
env:
TAG: ${{ steps.get_version.outputs.version }}
run: export APP_TAG=${{ env.TAG }} |
echo "APP_TAG=${{ env.TAG }}" |
run: |
export APP_TAG=${{ env.TAG }} |
echo APP_TAG=${{ env.TAG }} |
export APP_NAME=${{ env.APP_NAME }} |
echo "APP_NAME=${{ env.APP_NAME }}" |
echo APP_NAME=${{ env.APP_NAME }} |
- name: Inject Env Var
run: |
envsubst < .deploy/deployment.yml
@@ -91,12 +92,12 @@ jobs:
uses: http://139.9.216.111:3000/bamanker/steevchen-kubectl@master
with:
config: ${{ secrets.KUBE_CONFIG }}
command: get pod -n default -l app=${{ env.CONTAINER_NAME }}
command: get pod -n default -l app=${{ env.APP_NAME }}
- name: k8s Update Deployment
uses: http://139.9.216.111:3000/bamanker/steevchen-kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout restart deployment ${{ env.CONTAINER_NAME }}-${{ gitea.ref_name }}
command: rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}