From f8af48aeab57a31253dc009cf67fd7dfb763ff0b Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Thu, 7 Sep 2023 18:14:22 +0200 Subject: [PATCH] Added canary build action. Not tested yet --- .github/workflows/canary-docker-build.yml | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/canary-docker-build.yml diff --git a/.github/workflows/canary-docker-build.yml b/.github/workflows/canary-docker-build.yml new file mode 100644 index 00000000..76e1ef40 --- /dev/null +++ b/.github/workflows/canary-docker-build.yml @@ -0,0 +1,29 @@ +name: Canary Docker Build + +on: + workflow_dispatch: + push: + branches: [ "main" ] + pull_request: + types: + - closed + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login into docker hub + run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PW }} + - name: Build and Push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Moonlight/Dockerfile + push: true + tags: moonlightpanel/moonlight:canary + platforms: linux/amd64,linux/arm64 \ No newline at end of file