Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 2, 2024
1 parent 0b5f230 commit a3f3465
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-ci-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build docker images (scheduled)

on:
push:
branches:
- change-ci
repository_dispatch:
workflow_call:
inputs:
image_postfix:
required: true
type: string
schedule:
- cron: "17 0 * * *"

concurrency:
group: docker-images-builds
cancel-in-progress: false

jobs:
quality:
name: "Docker for quality checks"
# Push CI doesn't need this image
# if: inputs.image_postfix != '-push-ci'
runs-on: ubuntu-22.04
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Check out code
uses: actions/checkout@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
REF=main
-f quality.dockerfile
push: true
tags: huggingface/transformers-quality
30 changes: 1 addition & 29 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,32 +324,4 @@ jobs:
build-args: |
REF=main
push: true
tags: huggingface/transformers-quantization-latest-gpu${{ inputs.image_postfix }}
quality:
name: "Docker for quality checks"
# Push CI doesn't need this image
if: inputs.image_postfix != '-push-ci'
runs-on: ubuntu-22.04
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Check out code
uses: actions/checkout@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
REF=main
-f quality.dockerfile
push: true
tags: huggingface/transformers-quality
tags: huggingface/transformers-quantization-latest-gpu${{ inputs.image_postfix }}

0 comments on commit a3f3465

Please sign in to comment.