FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NodeODM/.github/workflows/publish-docker-gpu.yaml at master · wmobley/NodeODM · GitHub
wmobley
/
NodeODM
Public
forked from
OpenDroneMap/NodeODM
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
NodeODM
/
.github
/
workflows
/
publish-docker-gpu.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
72 lines (69 loc) · 2.02 KB
Breadcrumbs
NodeODM
/
.github
/
workflows
/
publish-docker-gpu.yaml
Copy path
File metadata and controls
72 lines (69 loc) · 2.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
Publish Docker GPU
on
:
push
:
branches
:
-
master
tags
:
-
v*
repository_dispatch
:
types
:
[odm-gpu-image-published]
workflow_dispatch
:
jobs
:
build
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
env
:
OWNER
:
wmobley
IMAGE_NAME
:
ghcr.io/wmobley/nodeodm
BASE_ODM_IMAGE
:
${{ github.event.client_payload.odm_tag || 'ghcr.io/wmobley/odm:gpu' }}
GHCR_TOKEN
:
${{ secrets.GHCR_PAT || secrets.GITHUB_TOKEN }}
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
with
:
buildkitd-config-inline
:
|
[worker.oci]
max-parallelism = 1
-
name
:
Login to GHCR
uses
:
docker/login-action@v3
with
:
registry
:
ghcr.io
username
:
${{ env.OWNER }}
password
:
${{ env.GHCR_TOKEN }}
-
name
:
Wait for ODM GPU image tag to exist
run
:
|
for i in {1..12}; do
if docker manifest inspect "${BASE_ODM_IMAGE}" >/dev/null 2>&1; then
echo "Found ${BASE_ODM_IMAGE}"
exit 0
fi
echo "Waiting for ${BASE_ODM_IMAGE} to appear..."
sleep 10
done
echo "ERROR: ODM GPU tag not available: ${BASE_ODM_IMAGE}"
exit 1
#
Use the repository information of the checked-out code to format docker tags
-
name
:
Docker meta
id
:
docker_meta
uses
:
docker/metadata-action@v5
with
:
images
:
${{ env.IMAGE_NAME }}
tag-semver
:
|
{{version}}
-
name
:
Build and push Docker image
id
:
docker_build
uses
:
docker/build-push-action@v5
with
:
file
:
./Dockerfile.gpu
platforms
:
linux/amd64
push
:
true
cache-from
:
type=registry,ref=${{ env.IMAGE_NAME }}:gpu-buildcache
cache-to
:
type=registry,ref=${{ env.IMAGE_NAME }}:gpu-buildcache,mode=max
build-args
:
|
BASE_ODM_IMAGE=${{ env.BASE_ODM_IMAGE }}
tags
:
|
${{ env.IMAGE_NAME }}:gpu
Back
|
FazBrowse Home
|
New Git URL