Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
laurivosandi committed Sep 12, 2024
0 parents commit 13d525e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ci

on:
push:
branches:
- main

jobs:
docker:
strategy:
matrix:
include:
- version: v8.2.0
model: yolov8n
- version: v8.2.0
model: yolov8s
- version: v8.2.0
model: yolov8m
- version: v8.2.0
model: yolov8l
- version: v8.2.0
model: yolov8x

runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
build-args: |
model=${{ matrix.model }}
version=${{ matrix.version }}
tags: ${{ matrix.model }}:${{ matrix.version }}
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG model=yolov8n
ARG version=v8.2.0
FROM alpine/curl AS build
RUN curl -O https://github.com/ultralytics/assets/releases/download/${version}/${model}.pt

FROM scratch
COPY --from=build ${model}.pt /model.pt

0 comments on commit 13d525e

Please sign in to comment.