1- # Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2- #
3- # Licensed under the Apache License, Version 2.0 (the "License");
4- # you may not use this file except in compliance with the License.
5- # You may obtain a copy of the License at
6- #
7- # http://www.apache.org/licenses/LICENSE-2.0
8- #
9- # Unless required by applicable law or agreed to in writing, software
10- # distributed under the License is distributed on an "AS IS" BASIS,
11- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12- # See the License for the specific language governing permissions and
13- # limitations under the License.
14-
15- # Inspired by
16- # https://github.com/huggingface/peft/blob/main/.github/workflows/build_docker_images.yml
17- name : Builds
1+ name : Build and Push Docker Image
182
193on :
204 workflow_dispatch :
21- workflow_call :
225 schedule :
236 - cron : " 0 1 * * *"
247
2811 PYTHON_VERSION : " 3.10"
2912
3013jobs :
31- latest-cpu :
32- name : CPU
33- runs-on :
34- group : aws-general-8-plus
35- steps :
36- - name : Install Git LFS
37- run : |
38- sudo apt-get update
39- sudo apt-get install git-lfs
40- git lfs install
41-
42- - name : Set up Docker Buildx
43- uses : docker/setup-buildx-action@v3
44- with :
45- cache-binary : false
46-
47- - name : Check out code
48- uses : actions/checkout@v4
49- with :
50- lfs : true
51- persist-credentials : false
52-
53- - name : Login to DockerHub
54- uses : docker/login-action@v3
55- with :
56- username : ${{ secrets.DOCKERHUB_USERNAME }}
57- password : ${{ secrets.DOCKERHUB_PASSWORD }}
58-
59- - name : Build and Push CPU
60- uses : docker/build-push-action@v5
61- with :
62- context : .
63- file : ./docker/lerobot-cpu/Dockerfile
64- push : true
65- tags : huggingface/lerobot-cpu
66- build-args : PYTHON_VERSION=${{ env.PYTHON_VERSION }}
67-
68-
69- latest-cuda :
70- name : GPU
71- runs-on :
72- group : aws-general-8-plus
73- steps :
74- - name : Install Git LFS
75- run : |
76- sudo apt-get update
77- sudo apt-get install git-lfs
78- git lfs install
79-
80- - name : Set up Docker Buildx
81- uses : docker/setup-buildx-action@v3
82- with :
83- cache-binary : false
84-
85- - name : Check out code
86- uses : actions/checkout@v4
87- with :
88- lfs : true
89- persist-credentials : false
90-
91- - name : Login to DockerHub
92- uses : docker/login-action@v3
93- with :
94- username : ${{ secrets.DOCKERHUB_USERNAME }}
95- password : ${{ secrets.DOCKERHUB_PASSWORD }}
96-
97- - name : Build and Push GPU
98- uses : docker/build-push-action@v5
99- with :
100- context : .
101- file : ./docker/lerobot-gpu/Dockerfile
102- push : true
103- tags : huggingface/lerobot-gpu
104- build-args : PYTHON_VERSION=${{ env.PYTHON_VERSION }}
105-
106-
107- latest-cuda-dev :
108- name : GPU Dev
109- runs-on :
110- group : aws-general-8-plus
14+ build-and-push :
15+ name : Build and Push
16+ runs-on : ubuntu-latest
11117 steps :
11218 - name : Set up Docker Buildx
11319 uses : docker/setup-buildx-action@v3
@@ -125,11 +31,11 @@ jobs:
12531 username : ${{ secrets.DOCKERHUB_USERNAME }}
12632 password : ${{ secrets.DOCKERHUB_PASSWORD }}
12733
128- - name : Build and Push GPU dev
34+ - name : Build and Push
12935 uses : docker/build-push-action@v5
13036 with :
13137 context : .
132- file : ./docker/lerobot-gpu-dev/ Dockerfile
38+ file : ./Dockerfile
13339 push : true
134- tags : huggingface/lerobot-gpu:dev
40+ tags : TensorAuto/OpenTau:latest
13541 build-args : PYTHON_VERSION=${{ env.PYTHON_VERSION }}
0 commit comments