From 8aa6c95977b84548b001b239de73c87df75e6625 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 12 Sep 2021 09:02:08 -0700 Subject: [PATCH] Create pi-docker.yml --- .github/workflows/pi-docker.yml | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/pi-docker.yml diff --git a/.github/workflows/pi-docker.yml b/.github/workflows/pi-docker.yml new file mode 100644 index 000000000..1b4b47bab --- /dev/null +++ b/.github/workflows/pi-docker.yml @@ -0,0 +1,46 @@ +name: Publish Docker image + +on: + workflow_dispatch: + release: + types: [published] + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '30 8 * * *' + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + +# - name: Extract metadata (tags, labels) for Docker +# id: meta +# uses: docker/metadata-action@v3 +# with: +# images: koush/scrypted + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + + with: + context: . + platforms: linux/arm/v7 + push: true + tags: koush/scrypted:latest + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }}