From: MyungJoo Ham Date: Thu, 23 May 2024 10:57:52 +0000 (+0900) Subject: github-action: build and deploy docker. X-Git-Tag: accepted/tizen/7.0/unified/20240712.082705~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e4d5251ff735a39ae3105794c166402bb35a89e;p=platform%2Fupstream%2Fnnstreamer.git github-action: build and deploy docker. Build and deploy docker image daily. This will be deployed to nnstreamer:nnstreamer docker hub repo. Signed-off-by: MyungJoo Ham --- diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..c4439d2 --- /dev/null +++ b/.github/workflows/docker.yml @@ -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