Notify new docker images built for circleci (#31701)
* hello * hello * hello * hello * hello * hello * hello * notify * trigger * use new channel --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
19
.github/workflows/build-ci-docker-images.yml
vendored
19
.github/workflows/build-ci-docker-images.yml
vendored
@@ -27,10 +27,10 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
file: ["quality", "consistency", "custom-tokenizers", "torch-light", "tf-light", "exotic-models", "torch-tf-light", "torch-jax-light", "jax-light", "examples-torch", "examples-tf"]
|
file: ["quality", "consistency", "custom-tokenizers", "torch-light", "tf-light", "exotic-models", "torch-tf-light", "torch-jax-light", "jax-light", "examples-torch", "examples-tf"]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Set tag
|
name: Set tag
|
||||||
run: |
|
run: |
|
||||||
if ${{contains(github.event.head_commit.message, '[build-ci-image]')}}; then
|
if ${{contains(github.event.head_commit.message, '[build-ci-image]')}}; then
|
||||||
@@ -61,4 +61,17 @@ jobs:
|
|||||||
REF=${{ github.sha }}
|
REF=${{ github.sha }}
|
||||||
file: "./docker/${{ matrix.file }}.dockerfile"
|
file: "./docker/${{ matrix.file }}.dockerfile"
|
||||||
push: ${{ contains(github.event.head_commit.message, 'ci-image]') || github.event_name == 'schedule' }}
|
push: ${{ contains(github.event.head_commit.message, 'ci-image]') || github.event_name == 'schedule' }}
|
||||||
tags: ${{ env.TAG }}
|
tags: ${{ env.TAG }}
|
||||||
|
|
||||||
|
notify:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
if: ${{ contains(github.event.head_commit.message, '[build-ci-image]') || contains(github.event.head_commit.message, '[push-ci-image]') && '!cancelled()' || github.event_name == 'schedule' }}
|
||||||
|
steps:
|
||||||
|
- name: Post to Slack
|
||||||
|
if: ${{ contains(github.event.head_commit.message, '[push-ci-image]') && github.event_name != 'schedule' }}
|
||||||
|
uses: huggingface/hf-workflows/.github/actions/post-slack@main
|
||||||
|
with:
|
||||||
|
slack_channel: "#transformers-ci-circleci-images"
|
||||||
|
title: 🤗 New docker images for CircleCI are pushed.
|
||||||
|
status: ${{ job.status }}
|
||||||
|
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
|
||||||
Reference in New Issue
Block a user