Added release build. Modified canary build events

This commit is contained in:
Marcel Baumgartner 2023-09-07 20:09:04 +02:00
parent 3f5a7504fa
commit ae2228e08a
2 changed files with 25 additions and 2 deletions

View file

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

View file

@ -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