greeting_message config param #329
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
branches: | |
- master | |
- development | |
pull_request: | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out the repository | |
uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt install ffmpeg -y | |
pip install -r scripts/requirements.dev.txt | |
- name: Run pre-commit on all files | |
run: | | |
pre-commit run --all-files --show-diff-on-failure --color=always | |
- name: Test with pytest | |
run: | | |
pytest -v | |
docker: | |
needs: pre-commit | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: Set up QEMU | |
uses: docker/[email protected] | |
- | |
name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- | |
name: Docker meta | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: lefskiy/moonraker-telegram-bot | |
tags: | | |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=sha | |
- | |
name: Docker meta | |
id: meta_mjpeg | |
uses: docker/[email protected] | |
with: | |
images: lefskiy/moonraker-telegram-bot | |
flavor: | | |
prefix=mjpeg-,onlatest=true | |
tags: | | |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=sha,prefix=sha-mjpeg- | |
- | |
name: Login to Docker Hub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push | |
uses: docker/[email protected] | |
with: | |
file: Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 | |
- | |
name: Build and push mjpeg | |
uses: docker/[email protected] | |
with: | |
file: Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta_mjpeg.outputs.tags }} | |
labels: ${{ steps.meta_mjpeg.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 |