Skip to content

Commit

Permalink
chore: update ghcr-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sokovninn authored Apr 8, 2024
1 parent 6e6c448 commit 83d9d7a
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/ghcr-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,17 @@ 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 }}
- 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 .
docker push ghcr.io/luxonis/datadreamer:latest

0 comments on commit 83d9d7a

Please sign in to comment.