diff --git a/.github/workflows/build-ci-docker-images.yml b/.github/workflows/build-ci-docker-images.yml index fa32ff820cb..7fccf7203ea 100644 --- a/.github/workflows/build-ci-docker-images.yml +++ b/.github/workflows/build-ci-docker-images.yml @@ -3,7 +3,7 @@ name: Build pr ci-docker on: push: branches: - - push-ci-image # for now let's only build on this branch + - revert-41610-ci_crying_becausse_torchcodec repository_dispatch: workflow_call: inputs: @@ -22,7 +22,6 @@ jobs: build: 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: matrix: @@ -32,14 +31,7 @@ jobs: steps: - name: Set tag - run: | - 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 + run: echo "TAG=huggingface/transformers-${{ matrix.file }}" >> "$GITHUB_ENV" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -60,18 +52,5 @@ jobs: build-args: | REF=${{ github.sha }} file: "./docker/${{ matrix.file }}.dockerfile" - push: ${{ contains(github.event.head_commit.message, 'ci-image]') || github.event_name == 'schedule' }} + push: true 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 }}