@@ -197,3 +197,47 @@ jobs:
197197 GIT_COMMIT=${{ github.sha }}
198198 cache-from : type=gha
199199 cache-to : type=gha,mode=max
200+
201+ model-downloader-docker :
202+ name : Build and Push Model Downloader Docker Image
203+ runs-on : ubuntu-latest
204+ steps :
205+ - name : Checkout repository
206+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
207+
208+ - name : Set up QEMU
209+ uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
210+
211+ - name : Set up Docker Buildx
212+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
213+
214+ - name : Log in to Container Registry
215+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
216+ with :
217+ registry : ${{ env.REGISTRY }}
218+ username : ${{ github.actor }}
219+ password : ${{ secrets.GITHUB_TOKEN }}
220+
221+ - name : Extract metadata for Docker
222+ id : meta
223+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
224+ with :
225+ images : ghcr.io/kaito-project/kubeairunway/model-downloader
226+ tags : |
227+ type=semver,pattern={{version}}
228+ type=semver,pattern={{major}}.{{minor}}
229+ type=semver,pattern={{major}}
230+ type=sha,prefix=
231+ type=raw,value=latest,enable=${{ !contains(github.ref, '-rc') && !contains(github.ref, '-beta') && !contains(github.ref, '-alpha') }}
232+
233+ - name : Build and push Docker image
234+ uses : docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
235+ with :
236+ context : images/model-downloader
237+ file : images/model-downloader/Dockerfile
238+ platforms : linux/amd64,linux/arm64
239+ push : true
240+ tags : ${{ steps.meta.outputs.tags }}
241+ labels : ${{ steps.meta.outputs.labels }}
242+ cache-from : type=gha
243+ cache-to : type=gha,mode=max
0 commit comments