-
Notifications
You must be signed in to change notification settings - Fork 312
74 lines (70 loc) · 2.32 KB
/
Copy pathdocker.media.jetson.7.2.0.yml
File metadata and controls
74 lines (70 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build and Push Jetson 7.2.0 Media Container
permissions:
contents: read
on:
release:
types: [created]
push:
branches: [main]
paths:
- ".github/workflows/docker.media.jetson.7.2.0.yml"
- "docker/dockerfiles/Dockerfile.media.jetson.7.2.0"
- "docker/native/jetson_tensor_bridge/**"
- "docker/scripts/**"
- "LICENSE"
- "LICENSE.core"
workflow_dispatch:
inputs:
force_push:
type: boolean
description: "Do you want to push the image after building?"
default: false
custom_tag:
type: string
description: "Custom tag to use for the image"
default: ""
env:
VERSION: "0.0.0"
BASE_IMAGE: "roboflow/roboflow-inference-media-jetson-7.2.0"
jobs:
docker:
runs-on:
labels: depot-ubuntu-24.04-4
group: public-depot
timeout-minutes: 180
permissions:
id-token: write
contents: read
steps:
- name: Login to Docker Hub
if: ${{ github.event_name == 'release' || inputs.force_push }}
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v6
- name: Read version from file
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> "$GITHUB_ENV"
- name: Determine image tags
id: tags
uses: ./.github/actions/determine-tags
with:
custom_tag: ${{ inputs.custom_tag }}
version: ${{ env.VERSION }}
base_image: ${{ env.BASE_IMAGE }}
force_push: ${{ inputs.force_push }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Depot CLI
uses: depot/setup-action@v1
- name: Build image
uses: depot/build-push-action@v1
with:
project: v1xzfwkc4b
context: .
file: ./docker/dockerfiles/Dockerfile.media.jetson.7.2.0
platforms: linux/arm64
push: ${{ github.event_name == 'release' || inputs.force_push }}
save: ${{ github.event_name != 'release' && !inputs.force_push }}
save-tag: ${{ github.event_name != 'release' && !inputs.force_push && format('media-jp72-{0}', github.sha) || '' }}
tags: ${{ steps.tags.outputs.image_tags }}