Fixed webhook uri getting from vault issue.
This commit is contained in:
parent
569cc05d5c
commit
dd82b90e27
|
@ -31,6 +31,9 @@ on:
|
||||||
VAULT_SECRET_ID:
|
VAULT_SECRET_ID:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
vault_main_base_path: dev/wilix/main/data/ci
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: check and test
|
name: check and test
|
||||||
|
@ -91,7 +94,7 @@ jobs:
|
||||||
roleId: ${{ secrets.VAULT_ROLE_ID }}
|
roleId: ${{ secrets.VAULT_ROLE_ID }}
|
||||||
secretId: ${{ secrets.VAULT_SECRET_ID }}
|
secretId: ${{ secrets.VAULT_SECRET_ID }}
|
||||||
secrets: |
|
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
|
- name: prepare failed notification body
|
||||||
if: ${{ inputs.notification_enabled && job.status == 'failure' }}
|
if: ${{ inputs.notification_enabled && job.status == 'failure' }}
|
||||||
|
|
|
@ -51,6 +51,9 @@ on:
|
||||||
VAULT_SECRET_ID:
|
VAULT_SECRET_ID:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
vault_main_base_path: dev/wilix/main/data/ci
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
converge:
|
converge:
|
||||||
name: Deploy stand
|
name: Deploy stand
|
||||||
|
@ -127,7 +130,7 @@ jobs:
|
||||||
roleId: ${{ secrets.VAULT_ROLE_ID }}
|
roleId: ${{ secrets.VAULT_ROLE_ID }}
|
||||||
secretId: ${{ secrets.VAULT_SECRET_ID }}
|
secretId: ${{ secrets.VAULT_SECRET_ID }}
|
||||||
secrets: |
|
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
|
- name: prepare success notification body
|
||||||
uses: https://github.com/finnp/create-file-action@master
|
uses: https://github.com/finnp/create-file-action@master
|
||||||
|
|
Loading…
Reference in New Issue