fix build-container.yml (#2557)

This should fix the build-container workflow when triggered by a Tag
(that it is failing was mentioned in #2555 )
This commit is contained in:
Lincoln Stein 2023-02-06 15:09:04 -05:00 committed by GitHub
commit a12189e088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -3,6 +3,7 @@ on:
push: push:
branches: branches:
- 'main' - 'main'
- 'update/ci/*'
tags: tags:
- 'v*.*.*' - 'v*.*.*'
@ -47,11 +48,10 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=sha,enable=true,prefix=sha-,suffix=${{ matrix.flavor}},format=short type=sha,enable=true,prefix=sha-,format=short
type=raw,value={{branch}}-${{ matrix.flavor }}
flavor: | flavor: |
latest=${{ matrix.flavor == 'cuda' && github.ref == 'refs/heads/main' }} latest=${{ matrix.flavor == 'cuda' && github.ref == 'refs/heads/main' }}
suffix=-${{ matrix.flavor }},onlatest=false
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2

View File

@ -1,7 +1,4 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# Maintained by Matthias Wild <mauwii@outlook.de>
ARG PYTHON_VERSION=3.9 ARG PYTHON_VERSION=3.9
################## ##################
## base image ## ## base image ##
@ -85,3 +82,5 @@ ENV INVOKE_MODEL_RECONFIGURE="--yes --default_only"
ENTRYPOINT [ "invokeai" ] ENTRYPOINT [ "invokeai" ]
CMD [ "--web", "--host=0.0.0.0" ] CMD [ "--web", "--host=0.0.0.0" ]
VOLUME [ "/data" ] VOLUME [ "/data" ]
LABEL org.opencontainers.image.authors="mauwii@outlook.de"