fixes
This commit is contained in:
@@ -17,6 +17,7 @@ inputs:
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- run: "echo a: Set up QEMU2"
|
||||
|
||||
|
||||
26
.gitea/actions/notify/action.yaml
Normal file
26
.gitea/actions/notify/action.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: 'notify'
|
||||
description: 'notify'
|
||||
|
||||
inputs:
|
||||
result:
|
||||
required: false
|
||||
default: "failure"
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
type: string
|
||||
default: build
|
||||
|
||||
env:
|
||||
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: mattermost/action-mattermost-notify@master
|
||||
with:
|
||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
||||
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]}}"
|
||||
}
|
||||
8
.github/workflows/deployk8s.yaml
vendored
8
.github/workflows/deployk8s.yaml
vendored
@@ -23,12 +23,6 @@ on:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
prenotify:
|
||||
uses: HUB/workflows/.github/workflows/notify.yaml@main
|
||||
with:
|
||||
result: 'started'
|
||||
name: k8s deploy ${{ inputs.environment }} tag ${{ inputs.tag }}
|
||||
secrets: inherit
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
@@ -36,6 +30,8 @@ jobs:
|
||||
CR_REPO: ${{ github.event.repository.name }}
|
||||
TAG: ${{ inputs.tag }}
|
||||
steps:
|
||||
- name: notify
|
||||
uses: ./gitea/actions/notify
|
||||
- name: Argo Login
|
||||
uses: clowdhaus/argo-cd-action/@main
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user