Skip to content

Commit 5418e3c

Browse files
authored
Build Push CI images also in a daily basis (#19532)
* Build Push CI images also in a daily basis * update Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
1 parent ef5899b commit 5418e3c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build-docker-images.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ jobs:
4343
REF=main
4444
push: true
4545
tags: huggingface/transformers-all-latest-gpu${{ inputs.image_postfix }}
46+
# Push CI images still need to be re-built daily
47+
-
48+
name: Build and push (for Push CI) in a daily basis
49+
# This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
50+
# The later case is useful for manual image building for debugging purpose. Use another tag in this case!
51+
if: inputs.image_postfix != '-push-ci'
52+
uses: docker/build-push-action@v2
53+
with:
54+
context: ./docker/transformers-all-latest-gpu
55+
build-args: |
56+
REF=main
57+
push: true
58+
tags: huggingface/transformers-all-latest-gpu-push-ci
4659

4760
latest-with-torch-nightly-docker:
4861
name: "Nightly PyTorch + Stable TensorFlow"
@@ -98,6 +111,19 @@ jobs:
98111
REF=main
99112
push: true
100113
tags: huggingface/transformers-pytorch-deepspeed-latest-gpu${{ inputs.image_postfix }}
114+
# Push CI images still need to be re-built daily
115+
-
116+
name: Build and push (for Push CI) in a daily basis
117+
# This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
118+
# The later case is useful for manual image building for debugging purpose. Use another tag in this case!
119+
if: inputs.image_postfix != '-push-ci'
120+
uses: docker/build-push-action@v2
121+
with:
122+
context: ./docker/transformers-pytorch-deepspeed-latest-gpu
123+
build-args: |
124+
REF=main
125+
push: true
126+
tags: huggingface/transformers-pytorch-deepspeed-latest-gpu-push-ci
101127

102128
nightly-torch-deepspeed-docker:
103129
name: "Nightly PyTorch + DeepSpeed"

0 commit comments

Comments
 (0)