Skip to content

Deploy latest image to GHCR on release #4

Deploy latest image to GHCR on release

Deploy latest image to GHCR on release #4

Workflow file for this run

name: Docker Build and Publish
on:
workflow_dispatch:
release:
types: [created]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
ghcr.io/luxonis/datadreamer:latest
env:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME: luxonis-ml
DOCKER_PASSWORD: ${{ secrets.GHCR_PAT }}
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: luxonis-ml
password: ${{ secrets.GHCR_PAT }}