2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-27 19:16:44 +00:00

Update docker build workflow (#8971)

* Update docker build workflow

- Use depot action
- Much faster builds

* Remove # noqa strings
This commit is contained in:
Oliver 2025-01-28 19:05:49 +11:00 committed by GitHub
parent c89fe44fea
commit 918adfb67f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -163,11 +163,14 @@ jobs:
inventree/inventree
ghcr.io/${{ github.repository }}
- uses: depot/setup-action@v1
- name: Push Docker Images
id: push-docker
if: github.event_name != 'pull_request'
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # pin@v6.10.0
uses: depot/build-push-action@v1
with:
project: jczzbjkk68
context: .
file: ./contrib/container/Dockerfile
platforms: linux/amd64,linux/arm64

View File

@ -45,7 +45,7 @@ def checkInvokeVersion():
MIN_INVOKE_VERSION = '2.0.0'
min_version = tuple(map(int, MIN_INVOKE_VERSION.split('.')))
invoke_version = tuple(map(int, invoke.__version__.split('.'))) # noqa: RUF048
invoke_version = tuple(map(int, invoke.__version__.split('.')))
if invoke_version < min_version:
error(f'The installed invoke version ({invoke.__version__}) is not supported!')