Skip to content

Allow changing speed of currently playing audio #7

Allow changing speed of currently playing audio

Allow changing speed of currently playing audio #7

name: Publish Docker Images
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
matrix:
midi-impl: ['nomidi', 'fluidsynth', 'timidity']
name: Build and publish ${{ matrix.midi-impl }} image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push image
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
build-args: |
MIDI_IMPL=${{ matrix.midi-impl }}
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/espionage-bot:latest-${{ matrix.midi-impl }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Print image digest
run: echo ${{ steps.docker_build.outputs.digest }}