Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy latest image to GHCR on release | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Docker login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: luxonis-ml | |
password: ${{ secrets.GHCR_PAT }} | |
- name: Publish | |
run: | | |
docker build -t ghcr.io/luxonis/datadreamer:latest -t ghcr.io/luxonis/datadreamer:${{ github.event.release.tag_name }} . | |
docker push ghcr.io/luxonis/datadreamer --all-tags |