Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 2. - [Release notes](https://github.com/peter-evans/repository-dispatch/releases) - [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v2) --- updated-dependencies: - dependency-name: peter-evans/repository-dispatch dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
name: Trigger docker build
|
|
on:
|
|
release:
|
|
types:
|
|
- released
|
|
- prereleased
|
|
push:
|
|
branches:
|
|
- maintenance
|
|
- devel
|
|
|
|
jobs:
|
|
dispatch_releases:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push'
|
|
steps:
|
|
- name: 🚀 Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
|
event-type: ${{ github.event.action }}
|
|
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
|
|
|
|
dispatch_canary:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
|
|
steps:
|
|
- name: 🚀 Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
|
event-type: "canary"
|
|
client-payload: '{"tag_name": "maintenance"}'
|
|
|
|
dispatch_bleeding:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel'
|
|
steps:
|
|
- name: 🚀 Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
|
repository: ${{ github.repository_owner }}/octoprint-docker
|
|
event-type: "bleeding"
|
|
client-payload: '{"tag_name": "devel"}'
|