From 4a6d2e1511998828e2730e49b9e8699efd446522 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 18 Feb 2021 22:07:03 +0100 Subject: [PATCH] use conditional build containers --- .drone.jsonnet | 5 ++++- .drone.yml | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 1833265..7daa5c8 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -34,6 +34,7 @@ local PipelineLint = { commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', + 'poetry config experimental.new-installer false', 'poetry install', 'poetry run yapf -dr ./dockertidy', ], @@ -47,6 +48,7 @@ local PipelineLint = { commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', + 'poetry config experimental.new-installer false', 'poetry install', 'poetry run flake8 ./dockertidy', ], @@ -120,6 +122,7 @@ local PipelineSecurity = { commands: [ 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', + 'poetry config experimental.new-installer false', 'poetry install', 'poetry run bandit -r ./dockertidy -x ./dockertidy/test', ], @@ -201,7 +204,7 @@ local PipelineBuildContainer(arch='amd64') = { name: 'build', image: 'python:3.9-alpine', commands: [ - 'apk add -Uq --no-cache build-base libressl-dev libffi-dev musl-dev python3-dev git', + 'apk add -Uq --no-cache build-base libressl-dev libffi-dev musl-dev python3-dev git cargo', 'git fetch -tq', 'pip install poetry poetry-dynamic-versioning -qq', 'poetry build', diff --git a/.drone.yml b/.drone.yml index ee3c769..65989b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,7 @@ steps: commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq + - poetry config experimental.new-installer false - poetry install - poetry run yapf -dr ./dockertidy environment: @@ -22,6 +23,7 @@ steps: commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq + - poetry config experimental.new-installer false - poetry install - poetry run flake8 ./dockertidy environment: @@ -141,6 +143,7 @@ steps: commands: - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq + - poetry config experimental.new-installer false - poetry install - poetry run bandit -r ./dockertidy -x ./dockertidy/test environment: @@ -383,7 +386,7 @@ steps: - name: build image: python:3.9-alpine commands: - - apk add -Uq --no-cache build-base libressl-dev libffi-dev musl-dev python3-dev git + - apk add -Uq --no-cache build-base libressl-dev libffi-dev musl-dev python3-dev git cargo - git fetch -tq - pip install poetry poetry-dynamic-versioning -qq - poetry build @@ -632,6 +635,6 @@ depends_on: --- kind: signature -hmac: d8149a65a34ade3b69589171c8d17827b18cc7ee1a3a8d9ee0fef173861f3fe5 +hmac: db4b48de5638c20a72c6e2356b0f75efe61ecb600bfb3784caf5c5ff5909808a ...