Skip to content

Commit

Permalink
github-action: build and deploy docker.
Browse files Browse the repository at this point in the history
Build and deploy docker image daily.
This will be deployed to nnstreamer:nnstreamer docker hub repo.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
myungjoo committed May 24, 2024
1 parent 65a984e commit 7ea7a09
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker build and deploy

on:
schedule:
# Daily at 1:15 am
- cron: '15 01 * * *'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: tools/docker/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/nnstreamer:latest

0 comments on commit 7ea7a09

Please sign in to comment.