updated CI to build multiple versions of containers

This commit is contained in:
k4yt3x 2022-02-17 05:43:12 +00:00
parent ad479e53b8
commit 82512ef10c

View File

@ -40,6 +40,12 @@ jobs:
name: Build and upload container
needs:
- setup
- create-release
strategy:
matrix:
version:
- slim-alpine
- cuda
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -50,6 +56,6 @@ jobs:
registry: ghcr.io
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_TOKEN }}
dockerfile: Dockerfile
dockerfile: Dockerfile.${{ matrix.version }}
image: video2x
tags: latest, ${{ needs.setup.outputs.tag }}
tags: latest, ${{ needs.setup.outputs.tag }}-${{ matrix.version }}