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>
--- /dev/null
+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