From dd82b90e27f494d4331a3fb7123998bc37701cec Mon Sep 17 00:00:00 2001 From: Stanislav Melnichuk Date: Fri, 9 Jun 2023 16:40:48 +0300 Subject: [PATCH] Fixed webhook uri getting from vault issue. --- .gitea/workflows/java-pull-request-check-template.yml | 5 ++++- .gitea/workflows/werf-deploy-template.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/java-pull-request-check-template.yml b/.gitea/workflows/java-pull-request-check-template.yml index e3b7024..e41eddb 100644 --- a/.gitea/workflows/java-pull-request-check-template.yml +++ b/.gitea/workflows/java-pull-request-check-template.yml @@ -31,6 +31,9 @@ on: VAULT_SECRET_ID: required: true +env: + vault_main_base_path: dev/wilix/main/data/ci + jobs: check: name: check and test @@ -91,7 +94,7 @@ jobs: roleId: ${{ secrets.VAULT_ROLE_ID }} secretId: ${{ secrets.VAULT_SECRET_ID }} secrets: | - dev/wilix/main/ci notification_url | MATTERMOST_WEBHOOK_URL ; + ${{ env.vault_main_base_path }} notification_url | MATTERMOST_WEBHOOK_URL ; - name: prepare failed notification body if: ${{ inputs.notification_enabled && job.status == 'failure' }} diff --git a/.gitea/workflows/werf-deploy-template.yml b/.gitea/workflows/werf-deploy-template.yml index 7f20342..5314af7 100644 --- a/.gitea/workflows/werf-deploy-template.yml +++ b/.gitea/workflows/werf-deploy-template.yml @@ -51,6 +51,9 @@ on: VAULT_SECRET_ID: required: true +env: + vault_main_base_path: dev/wilix/main/data/ci + jobs: converge: name: Deploy stand @@ -127,7 +130,7 @@ jobs: roleId: ${{ secrets.VAULT_ROLE_ID }} secretId: ${{ secrets.VAULT_SECRET_ID }} secrets: | - dev/wilix/main/ci notification_url | MATTERMOST_WEBHOOK_URL ; + ${{ env.vault_main_base_path }} notification_url | MATTERMOST_WEBHOOK_URL ; - name: prepare success notification body uses: https://github.com/finnp/create-file-action@master