From 909a67fcefbd83f0cfcf09bfa818ba348fa8d089 Mon Sep 17 00:00:00 2001 From: Max Winterstein Date: Tue, 5 Jan 2021 17:12:07 +0100 Subject: [PATCH] Add github action to rebuild eufy bridge nightly and on push --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2556b5a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: build-and-push + +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '17 3 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + +jobs: + eufy-ha-mqtt-bridge: + runs-on: ubuntu-latest + + steps: + - + name: Checkout + 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: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: eufy-ha-mqtt-bridge/ + file: eufy-ha-mqtt-bridge/Dockerfile-real + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: true + tags: | + maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge:latest \ No newline at end of file