Skip to content

Export python music box configuration #333

Export python music box configuration

Export python music box configuration #333

Workflow file for this run

name: Docker
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
docker-build-and-test:
name: Build and Test - ${{ matrix.dockerfile }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
dockerfile:
- Dockerfile
- Dockerfile.docs
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
- name: Build Docker image
run: docker build -t music-box -f docker/${{ matrix.dockerfile }} .
- name: Run tests in container
if: matrix.dockerfile == 'Dockerfile'
run: docker run --name test-container -t music-box