add
This commit is contained in:
26
.github/workflows/notify/action.yaml
vendored
Normal file
26
.github/workflows/notify/action.yaml
vendored
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]}}"
|
||||
}
|
||||
33
actions/k8s/action.yaml
Normal file
33
actions/k8s/action.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: 'k8s deploy'
|
||||
description: 'k8s deploy'
|
||||
|
||||
inputs:
|
||||
tag:
|
||||
required: false
|
||||
type: string
|
||||
default: latest
|
||||
migrate:
|
||||
type: boolean
|
||||
default: false
|
||||
configs:
|
||||
type: boolean
|
||||
default: false
|
||||
environment:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- run: "echo a: Set up QEMU2"
|
||||
|
||||
- run: |
|
||||
sleep 10
|
||||
echo 'sleep 10 end'
|
||||
|
||||
- run: "echo b: Login to DockerHub"
|
||||
if: ${{ inputs.password != '' }}
|
||||
|
||||
- run: |
|
||||
sleep 10
|
||||
echo 'c: Set up Docker BuildX'
|
||||
26
actions/notify/action.yaml
Normal file
26
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]}}"
|
||||
}
|
||||
26
notify/action.yaml
Normal file
26
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]}}"
|
||||
}
|
||||
Reference in New Issue
Block a user