Skip to content

Commit

Permalink
Merge pull request #1512 from mikel-brostrom/dockerhub
Browse files Browse the repository at this point in the history
dockerhub deploy
  • Loading branch information
mikel-brostrom committed Jul 9, 2024
2 parents c1af860 + 12ab024 commit 77ea65f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Image CI

on:
push:
branches: [main]
workflow_dispatch:


jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract version from pyproject.toml
id: extract_version
run: |
version=$(grep -Po '(?<=^version = ")[^"]*' pyproject.toml)
echo "VERSION=$version" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: boxmot/boxmot:${{ env.VERSION }}

0 comments on commit 77ea65f

Please sign in to comment.