fix
This commit is contained in:
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
@@ -5,6 +5,7 @@ jobs:
|
|||||||
runs-on: gpu
|
runs-on: gpu
|
||||||
env:
|
env:
|
||||||
#DOCKER_HOST: tcp://${{ matrix.config.host }}:2376
|
#DOCKER_HOST: tcp://${{ matrix.config.host }}:2376
|
||||||
|
MESSAGE: "${{ github.repository }} [${{ github.action }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was"
|
||||||
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 }}
|
||||||
@@ -29,3 +30,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7}
|
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7}
|
||||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest
|
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest
|
||||||
|
- name: Dump GitHub context
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
run: echo "$GITHUB_CONTEXT "
|
||||||
|
- uses: mattermost/action-mattermost-notify@master
|
||||||
|
if: success()
|
||||||
|
with:
|
||||||
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
||||||
|
TEXT: "${{ env.MESSAGE }} success :white_check_mark:"
|
||||||
|
- uses: mattermost/action-mattermost-notify@master
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
||||||
|
TEXT: "${{ env.MESSAGE }} failed :x:"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user