Skip to content

Commit 948f938

Browse files
authored
Merge pull request #700 from roboflow/feature/depot
Build images using Depot.dev
2 parents 6647709 + bc05d47 commit 948f938

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+580
-510
lines changed

.github/workflows/docker.cpu.parallel.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
release:
55
types: [created]
66
push:
7-
branches: [ main ]
7+
branches: [main]
88
workflow_dispatch:
99
inputs:
1010
force_push:
@@ -13,39 +13,33 @@ on:
1313
default: false
1414

1515
env:
16-
VERSION: '0.0.0' # Default version, will be overwritten
16+
VERSION: "0.0.0" # Default version, will be overwritten
1717

1818
jobs:
1919
docker:
2020
runs-on:
21-
group: group8core
21+
labels: ubuntu-latest
2222
timeout-minutes: 120
23+
permissions:
24+
id-token: write
25+
contents: read
2326
steps:
24-
-
25-
name: Set up QEMU
26-
uses: docker/setup-qemu-action@v2
27-
-
28-
name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v2
30-
-
31-
name: Login to Docker Hub
32-
uses: docker/login-action@v2
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
3329
with:
3430
username: ${{ secrets.DOCKERHUB_USERNAME }}
3531
password: ${{ secrets.DOCKERHUB_TOKEN }}
36-
-
37-
name: 🛎️ Checkout
38-
uses: actions/checkout@v3
39-
-
40-
name: Read version from file
32+
- name: 🛎️ Checkout
33+
uses: actions/checkout@v4
34+
- name: Read version from file
4135
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
42-
-
43-
name: Build and Push
44-
uses: docker/build-push-action@v4
36+
- name: Set up Depot CLI
37+
uses: depot/setup-action@v1
38+
- name: Build and Push
39+
uses: depot/build-push-action@v1
4540
with:
4641
push: ${{ github.event_name == 'release' || (github.event.inputs.force_push == 'true')}}
42+
project: grl7ffzxd7
4743
tags: roboflow/roboflow-inference-server-cpu-parallel:latest,roboflow/roboflow-inference-server-cpu-parallel:${{env.VERSION}}
48-
cache-from: type=registry,ref=roboflow/roboflow-inference-server-cpu-parallel:cache
49-
cache-to: type=registry,ref=roboflow/roboflow-inference-server-cpu-parallel:cache,mode=max
5044
platforms: linux/amd64,linux/arm64
51-
file: ./docker/dockerfiles/Dockerfile.onnx.cpu.parallel
45+
file: ./docker/dockerfiles/Dockerfile.onnx.cpu.parallel

.github/workflows/docker.cpu.slim.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
release:
55
types: [created]
66
push:
7-
branches: [ main ]
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
810
workflow_dispatch:
911
inputs:
1012
force_push:
@@ -13,39 +15,34 @@ on:
1315
default: false
1416

1517
env:
16-
VERSION: '0.0.0' # Default version, will be overwritten
18+
VERSION: "0.0.0" # Default version, will be overwritten
1719

1820
jobs:
1921
docker:
2022
runs-on:
21-
group: group8core
23+
labels: ubuntu-latest
2224
timeout-minutes: 120
25+
permissions:
26+
id-token: write
27+
contents: read
28+
packages: write
2329
steps:
24-
-
25-
name: Set up QEMU
26-
uses: docker/setup-qemu-action@v2
27-
-
28-
name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v2
30-
-
31-
name: Login to Docker Hub
32-
uses: docker/login-action@v2
30+
- name: Login to Docker Hub
31+
uses: docker/login-action@v3
3332
with:
3433
username: ${{ secrets.DOCKERHUB_USERNAME }}
3534
password: ${{ secrets.DOCKERHUB_TOKEN }}
36-
-
37-
name: 🛎️ Checkout
38-
uses: actions/checkout@v3
39-
-
40-
name: Read version from file
35+
- name: 🛎️ Checkout
36+
uses: actions/checkout@v4
37+
- name: Read version from file
4138
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
42-
-
43-
name: Build and Push
44-
uses: docker/build-push-action@v4
39+
- name: Set up Depot CLI
40+
uses: depot/setup-action@v1
41+
- name: Build and Push
42+
uses: depot/build-push-action@v1
4543
with:
4644
push: ${{ github.event_name == 'release' || (github.event.inputs.force_push == 'true')}}
45+
project: grl7ffzxd7
4746
tags: roboflow/roboflow-inference-server-cpu-slim:latest,roboflow/roboflow-inference-server-cpu-slim:${{env.VERSION}}
48-
cache-from: type=registry,ref=roboflow/roboflow-inference-server-cpu-slim:cache
49-
cache-to: type=registry,ref=roboflow/roboflow-inference-server-cpu-slim:cache,mode=max
5047
platforms: linux/amd64,linux/arm64
51-
file: ./docker/dockerfiles/Dockerfile.onnx.cpu.slim
48+
file: ./docker/dockerfiles/Dockerfile.onnx.cpu.parallel

.github/workflows/docker.cpu.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: Build and Push CPU Container
33
on:
44
release:
55
types: [created]
6+
pull_request:
7+
branches: [main]
68
push:
7-
branches: [ main ]
9+
branches: [main]
810
workflow_dispatch:
911
inputs:
1012
force_push:
@@ -13,39 +15,34 @@ on:
1315
default: false
1416

1517
env:
16-
VERSION: '0.0.0' # Default version, will be overwritten
18+
VERSION: "0.0.0" # Default version, will be overwritten
1719

1820
jobs:
1921
docker:
2022
runs-on:
21-
group: group8core
23+
labels: ubuntu-latest
2224
timeout-minutes: 120
25+
permissions:
26+
id-token: write
27+
contents: read
28+
packages: write
2329
steps:
24-
-
25-
name: Set up QEMU
26-
uses: docker/setup-qemu-action@v2
27-
-
28-
name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v2
30-
-
31-
name: Login to Docker Hub
32-
uses: docker/login-action@v2
30+
- name: Login to Docker Hub
31+
uses: docker/login-action@v3
3332
with:
3433
username: ${{ secrets.DOCKERHUB_USERNAME }}
3534
password: ${{ secrets.DOCKERHUB_TOKEN }}
36-
-
37-
name: 🛎️ Checkout
38-
uses: actions/checkout@v3
39-
-
40-
name: Read version from file
35+
- name: 🛎️ Checkout
36+
uses: actions/checkout@v4
37+
- name: Read version from file
4138
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
42-
-
43-
name: Build and Push
44-
uses: docker/build-push-action@v4
39+
- name: Set up Depot CLI
40+
uses: depot/setup-action@v1
41+
- name: Build and Push
42+
uses: depot/build-push-action@v1
4543
with:
4644
push: ${{ github.event_name == 'release' || (github.event.inputs.force_push == 'true')}}
45+
project: grl7ffzxd7
4746
tags: roboflow/roboflow-inference-server-cpu:latest,roboflow/roboflow-inference-server-cpu:${{env.VERSION}}
48-
cache-from: type=registry,ref=roboflow/roboflow-inference-server-cpu:cache
49-
cache-to: type=registry,ref=roboflow/roboflow-inference-server-cpu:cache,mode=max
5047
platforms: linux/amd64,linux/arm64
51-
file: ./docker/dockerfiles/Dockerfile.onnx.cpu
48+
file: ./docker/dockerfiles/Dockerfile.onnx.cpu

.github/workflows/docker.gpu.parallel.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
release:
55
types: [created]
66
push:
7-
branches: [ main ]
7+
branches: [main]
88
workflow_dispatch:
99
inputs:
1010
force_push:
@@ -13,43 +13,33 @@ on:
1313
default: false
1414

1515
env:
16-
VERSION: '0.0.0' # Default version, will be overwritten
16+
VERSION: "0.0.0" # Default version, will be overwritten
1717

1818
jobs:
1919
docker:
2020
runs-on:
21-
group: group8core
21+
labels: ubuntu-latest
2222
timeout-minutes: 120
23+
permissions:
24+
id-token: write
25+
contents: read
2326
steps:
24-
- name: Remove unnecessary files
25-
run: |
26-
sudo rm -rf /usr/share/dotnet
27-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
28-
-
29-
name: Set up QEMU
30-
uses: docker/setup-qemu-action@v2
31-
-
32-
name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@v2
34-
-
35-
name: Login to Docker Hub
36-
uses: docker/login-action@v2
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
3729
with:
3830
username: ${{ secrets.DOCKERHUB_USERNAME }}
3931
password: ${{ secrets.DOCKERHUB_TOKEN }}
40-
-
41-
name: 🛎️ Checkout
42-
uses: actions/checkout@v3
43-
-
44-
name: Read version from file
32+
- name: 🛎️ Checkout
33+
uses: actions/checkout@v4
34+
- name: Read version from file
4535
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
46-
-
47-
name: Build and Push
48-
uses: docker/build-push-action@v4
36+
- name: Set up Depot CLI
37+
uses: depot/setup-action@v1
38+
- name: Build and Push
39+
uses: depot/build-push-action@v1
4940
with:
5041
push: ${{ github.event_name == 'release' || (github.event.inputs.force_push == 'true')}}
42+
project: grl7ffzxd7
5143
tags: roboflow/roboflow-inference-server-gpu-parallel:latest,roboflow/roboflow-inference-server-gpu-parallel:${{env.VERSION}}
52-
cache-from: type=registry,ref=roboflow/roboflow-inference-server-gpu-parallel:cache
53-
cache-to: type=registry,ref=roboflow/roboflow-inference-server-gpu-parallel:cache,mode=max
5444
platforms: linux/amd64
55-
file: ./docker/dockerfiles/Dockerfile.onnx.gpu.parallel
45+
file: ./docker/dockerfiles/Dockerfile.onnx.gpu.parallel

.github/workflows/docker.gpu.slim.yml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,42 @@ on:
44
release:
55
types: [created]
66
push:
7-
branches: [ main ]
7+
branches: [main]
88
workflow_dispatch:
99
inputs:
1010
force_push:
1111
type: boolean
1212
description: "Do you want to push image after build?"
1313
default: false
14+
1415
env:
15-
VERSION: '0.0.0' # Default version, will be overwritten
16+
VERSION: "0.0.0" # Default version, will be overwritten
1617

1718
jobs:
1819
docker:
1920
runs-on:
20-
group: group8core
21+
labels: ubuntu-latest
2122
timeout-minutes: 120
23+
permissions:
24+
id-token: write
25+
contents: read
2226
steps:
23-
- name: Remove unnecessary files
24-
run: |
25-
sudo rm -rf /usr/share/dotnet
26-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
27-
-
28-
name: Set up QEMU
29-
uses: docker/setup-qemu-action@v2
30-
-
31-
name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v2
33-
-
34-
name: Login to Docker Hub
35-
uses: docker/login-action@v2
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
3629
with:
3730
username: ${{ secrets.DOCKERHUB_USERNAME }}
3831
password: ${{ secrets.DOCKERHUB_TOKEN }}
39-
-
40-
name: 🛎️ Checkout
41-
uses: actions/checkout@v3
42-
-
43-
name: Read version from file
32+
- name: 🛎️ Checkout
33+
uses: actions/checkout@v4
34+
- name: Read version from file
4435
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
45-
-
46-
name: Build and Push
47-
uses: docker/build-push-action@v4
36+
- name: Set up Depot CLI
37+
uses: depot/setup-action@v1
38+
- name: Build and Push
39+
uses: depot/build-push-action@v1
4840
with:
4941
push: ${{ github.event_name == 'release' || (github.event.inputs.force_push == 'true')}}
42+
project: grl7ffzxd7
5043
tags: roboflow/roboflow-inference-server-gpu-slim:latest,roboflow/roboflow-inference-server-gpu-slim:${{env.VERSION}}
51-
cache-from: type=registry,ref=roboflow/roboflow-inference-server-gpu-slim:cache
52-
cache-to: type=registry,ref=roboflow/roboflow-inference-server-gpu-slim:cache,mode=max
5344
platforms: linux/amd64
54-
file: ./docker/dockerfiles/Dockerfile.onnx.gpu.slim
45+
file: ./docker/dockerfiles/Dockerfile.onnx.gpu.slim

0 commit comments

Comments
 (0)