update build-container workflow

- switch versioning from semver to pep440
- remove unecesarry paths
- include `.dockerignore` in paths
This commit is contained in:
mauwii 2023-03-05 02:13:57 +01:00
parent 2d9fac23e7
commit 82fe34b1f7
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -9,16 +9,13 @@ on:
- 'dev/docker/*'
paths:
- 'pyproject.toml'
- '.dockerignore'
- 'invokeai/**'
- 'invokeai/backend/**'
- 'invokeai/configs/**'
- 'invokeai/frontend/dist/**'
- 'docker/Dockerfile'
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
docker:
if: github.event.pull_request.draft == false
@ -56,9 +53,9 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}.{{minor}}
type=pep440,pattern={{major}}
type=sha,enable=true,prefix=sha-,format=short
flavor: |
latest=${{ matrix.flavor == 'cuda' && github.ref == 'refs/heads/main' }}