From 3bafd1d7e0a1a0f2a960fa5887bf9386d924fe4b Mon Sep 17 00:00:00 2001 From: Nobody <17956512+n0bodysec@users.noreply.github.com> Date: Wed, 28 Sep 2022 17:52:25 -0300 Subject: [PATCH] chore: add GitHub Actions for stremio-web Automatic build and publish docker image --- .github/workflows/stremio-web.publish.yml | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/stremio-web.publish.yml diff --git a/.github/workflows/stremio-web.publish.yml b/.github/workflows/stremio-web.publish.yml new file mode 100644 index 0000000..604da57 --- /dev/null +++ b/.github/workflows/stremio-web.publish.yml @@ -0,0 +1,44 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Publish Stremio Docker Image + +on: + push: + branches: + - main + +jobs: + push_to_registry: + if: "contains(github.event.head_commit.message, 'stremio')" + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: stremio-web/ + platforms: linux/amd64,linux/arm64,linux/arm/v8,linux/arm/v7,linux/arm/v6 + push: true + tags: n0bodysec/stremio:latest