mirror of
https://github.com/huggingface/transformers.git
synced 2025-10-20 17:13:56 +08:00
try
This commit is contained in:
27
.github/workflows/build-ci-docker-images.yml
vendored
27
.github/workflows/build-ci-docker-images.yml
vendored
@ -3,7 +3,7 @@ name: Build pr ci-docker
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- push-ci-image # for now let's only build on this branch
|
- revert-41610-ci_crying_becausse_torchcodec
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@ -22,7 +22,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
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' }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -32,14 +31,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Set tag
|
name: Set tag
|
||||||
run: |
|
run: echo "TAG=huggingface/transformers-${{ matrix.file }}" >> "$GITHUB_ENV"
|
||||||
if ${{contains(github.event.head_commit.message, '[build-ci-image]')}}; then
|
|
||||||
echo "TAG=huggingface/transformers-${{ matrix.file }}:dev" >> "$GITHUB_ENV"
|
|
||||||
echo "setting it to DEV!"
|
|
||||||
else
|
|
||||||
echo "TAG=huggingface/transformers-${{ matrix.file }}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
fi
|
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@ -60,18 +52,5 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
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: true
|
||||||
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