mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36: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:
parent
c89fe44fea
commit
918adfb67f
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
@ -163,11 +163,14 @@ jobs:
|
|||||||
inventree/inventree
|
inventree/inventree
|
||||||
ghcr.io/${{ github.repository }}
|
ghcr.io/${{ github.repository }}
|
||||||
|
|
||||||
|
- uses: depot/setup-action@v1
|
||||||
|
|
||||||
- name: Push Docker Images
|
- name: Push Docker Images
|
||||||
id: push-docker
|
id: push-docker
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # pin@v6.10.0
|
uses: depot/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
|
project: jczzbjkk68
|
||||||
context: .
|
context: .
|
||||||
file: ./contrib/container/Dockerfile
|
file: ./contrib/container/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
2
tasks.py
2
tasks.py
@ -45,7 +45,7 @@ def checkInvokeVersion():
|
|||||||
MIN_INVOKE_VERSION = '2.0.0'
|
MIN_INVOKE_VERSION = '2.0.0'
|
||||||
|
|
||||||
min_version = tuple(map(int, MIN_INVOKE_VERSION.split('.')))
|
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:
|
if invoke_version < min_version:
|
||||||
error(f'The installed invoke version ({invoke.__version__}) is not supported!')
|
error(f'The installed invoke version ({invoke.__version__}) is not supported!')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user