test
This commit is contained in:
@@ -10,6 +10,9 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: build
|
default: build
|
||||||
|
secrets:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}'
|
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}'
|
||||||
@@ -19,7 +22,7 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: mattermost/action-mattermost-notify@master
|
- uses: mattermost/action-mattermost-notify@master
|
||||||
with:
|
with:
|
||||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
MATTERMOST_WEBHOOK_URL: ${{ fromJSON(inputs.secrets).MM_WEBHOOK_URL }}
|
||||||
PAYLOAD: |
|
PAYLOAD: |
|
||||||
{
|
{
|
||||||
"text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}"
|
"text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}"
|
||||||
|
|||||||
4
.github/workflows/deployk8s.yaml
vendored
4
.github/workflows/deployk8s.yaml
vendored
@@ -32,6 +32,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: notify
|
- name: notify
|
||||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD
|
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD
|
||||||
|
with:
|
||||||
|
result: 'started'
|
||||||
|
secrets: ${{ toJSON(secrets) }}
|
||||||
|
name: deploy ${{ inputs.environment }} tag ${{ inputs.tag }}
|
||||||
- name: Argo Login
|
- name: Argo Login
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user