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:
|
force_build:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
secrets:
|
||||||
|
VK_TEAMS_BOT_TOKEN:
|
||||||
|
required: true
|
||||||
|
VK_TEAMS_CHAT_ID:
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -20,13 +24,15 @@ jobs:
|
|||||||
CR_REGISTRY: crp8vh46gd976oq8ipla
|
CR_REGISTRY: crp8vh46gd976oq8ipla
|
||||||
CR_REPO: ${{ github.event.repository.name }}
|
CR_REPO: ${{ github.event.repository.name }}
|
||||||
IMAGE_TAG: ${{ github.sha }}
|
IMAGE_TAG: ${{ github.sha }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: notify
|
- name: Notify (started)
|
||||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
||||||
with:
|
with:
|
||||||
result: 'started'
|
result: started
|
||||||
name: build tag ${{ inputs.tag }}
|
name: build tag ${{ inputs.tag }}
|
||||||
secrets: ${{ toJSON(secrets) }}
|
token: ${{ secrets.VK_TEAMS_BOT_TOKEN }}
|
||||||
|
to: ${{ secrets.VK_TEAMS_CHAT_ID }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -100,10 +106,11 @@ jobs:
|
|||||||
path: /cache/buildx-cache
|
path: /cache/buildx-cache
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
|
||||||
- name: post-notify
|
- name: Notify (result)
|
||||||
if: always()
|
if: always()
|
||||||
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main
|
||||||
with:
|
with:
|
||||||
result: ${{ steps.build-step.outcome }}
|
result: ${{ steps.build-step.outcome }}
|
||||||
name: build tag ${{ inputs.tag }}
|
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