Merge pull request 'new_notify' (#36) from new_notify into main
Reviewed-on: #36
This commit is contained in:
19
.github/workflows/build.yaml
vendored
19
.github/workflows/build.yaml
vendored
@@ -11,7 +11,11 @@ on:
|
||||
force_build:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
secrets:
|
||||
VK_TEAMS_BOT_TOKEN:
|
||||
required: true
|
||||
VK_TEAMS_CHAT_ID:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -20,13 +24,15 @@ jobs:
|
||||
CR_REGISTRY: crp8vh46gd976oq8ipla
|
||||
CR_REPO: ${{ github.event.repository.name }}
|
||||
IMAGE_TAG: ${{ github.sha }}
|
||||
|
||||
steps:
|
||||
- name: notify
|
||||
- name: Notify (started)
|
||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
||||
with:
|
||||
result: 'started'
|
||||
result: started
|
||||
name: build tag ${{ inputs.tag }}
|
||||
secrets: ${{ toJSON(secrets) }}
|
||||
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
|
||||
to: ${{ secrets.VK_TEAMS_CHAT_ID }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -100,10 +106,11 @@ jobs:
|
||||
path: /cache/buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
|
||||
- name: post-notify
|
||||
- name: Notify (result)
|
||||
if: always()
|
||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
||||
with:
|
||||
result: ${{ steps.build-step.outcome }}
|
||||
name: build tag ${{ inputs.tag }}
|
||||
secrets: ${{ toJSON(secrets) }}
|
||||
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
|
||||
to: ${{ secrets.VK_TEAMS_CHAT_ID }}
|
||||
|
||||
Reference in New Issue
Block a user