diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a84f2b8..40b73c4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,22 @@ jobs: build-container: runs-on: ubuntu-latest + strategy: + fail-fast: false + + matrix: + include: + - name: stock + - name: vtk + vtk: "True" + - name: python + python: "True" + - name: vtk-python + python: "True" + vtk: "True" + + name: "🐳 Build Container (🐍: ${{ matrix.python || 'False' }}, 🧰: ${{ matrix.vtk || 'False' }})" + steps: - name: 📥 Checkout uses: actions/checkout@v4 @@ -23,14 +39,6 @@ jobs: - name: ♻️ Publish Images run: | - docker buildx build --tag vienna-builder --load . - docker buildx build --tag vienna-builder-vtk --build-arg VTK="True" --load . - docker buildx build --tag vienna-builder-python --build-arg PYTHON="True" --load . - - docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:stock - docker image tag vienna-builder-vtk ghcr.io/viennatools/vienna-builder:vtk - docker image tag vienna-builder-python ghcr.io/viennatools/vienna-builder:python - - docker push ghcr.io/viennatools/vienna-builder:stock - docker push ghcr.io/viennatools/vienna-builder:vtk - docker push ghcr.io/viennatools/vienna-builder:python + docker buildx build --tag vienna-builder --build-arg VTK="${{ matrix.vtk || 'False' }}" PYTHON="${{ matrix.python || 'False' }}" --load . + docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:${{ matrix.name }} + docker push ghcr.io/viennatools/vienna-builder:${{ matrix.name }}