Skip to content

Commit

Permalink
update [push-ci-image]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 3, 2024
1 parent 45da9bd commit 064b526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-ci-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build docker
name: Build pr ci-docker

on:
push:
Expand All @@ -17,23 +17,20 @@ on:

jobs:
build:
# Push CI doesn't need this image
# if: inputs.image_postfix != '-push-ci'

runs-on: ubuntu-22.04
concurrency:
group: staging_environment
cancel-in-progress: true
if: |
contains(github.event.head_commit.message, '[push-ci-image]') &&
contains(github.actor, 'transformers') &&
${{ !cancelled() && (success() || failure()) }}


strategy:
matrix:
file: ["quality", "consistency", "custom-tokenizers", "torch-light", "tf-light", "exotic-models", "torch-tf-light"] # Add your file names here

if: |
contains(github.event.head_commit.message, '[push-ci-image]') &&
contains(github.actor, 'transformers') &&
${{ !cancelled() && (success() || failure()) }}
steps:
-
Expand All @@ -49,7 +46,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: ${{ matrix.file }}
name: Build ${{ matrix.file }}.dockerfile
uses: docker/build-push-action@v5
with:
context: ./docker
Expand Down
1 change: 0 additions & 1 deletion docker/torch-tf-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepi

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake g++
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton

0 comments on commit 064b526

Please sign in to comment.