瀏覽代碼

Added release build. Modified canary build events

Marcel Baumgartner 1 年之前
父節點
當前提交
ae2228e08a
共有 2 個文件被更改,包括 25 次插入2 次删除
  1. 0 2
      .github/workflows/canary-docker-build.yml
  2. 25 0
      .github/workflows/release-docker-build.yml

+ 0 - 2
.github/workflows/canary-docker-build.yml

@@ -2,8 +2,6 @@
 
 on:
   workflow_dispatch:
-  push:
-    branches: [ "main" ]
   pull_request:
     types:
       - closed

+ 25 - 0
.github/workflows/release-docker-build.yml

@@ -0,0 +1,25 @@
+name: Canary Docker Build
+
+on:
+  workflow_dispatch:
+  release:
+    types: [ published ]
+
+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:beta
+          platforms: linux/amd64,linux/arm64