mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-09-21 00:42:49 +02:00
use conditional build containers
This commit is contained in:
parent
9291a4b4a5
commit
4a6d2e1511
|
@ -34,6 +34,7 @@ local PipelineLint = {
|
||||||
commands: [
|
commands: [
|
||||||
'git fetch -tq',
|
'git fetch -tq',
|
||||||
'pip install poetry poetry-dynamic-versioning -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
|
'poetry config experimental.new-installer false',
|
||||||
'poetry install',
|
'poetry install',
|
||||||
'poetry run yapf -dr ./dockertidy',
|
'poetry run yapf -dr ./dockertidy',
|
||||||
],
|
],
|
||||||
|
@ -47,6 +48,7 @@ local PipelineLint = {
|
||||||
commands: [
|
commands: [
|
||||||
'git fetch -tq',
|
'git fetch -tq',
|
||||||
'pip install poetry poetry-dynamic-versioning -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
|
'poetry config experimental.new-installer false',
|
||||||
'poetry install',
|
'poetry install',
|
||||||
'poetry run flake8 ./dockertidy',
|
'poetry run flake8 ./dockertidy',
|
||||||
],
|
],
|
||||||
|
@ -120,6 +122,7 @@ local PipelineSecurity = {
|
||||||
commands: [
|
commands: [
|
||||||
'git fetch -tq',
|
'git fetch -tq',
|
||||||
'pip install poetry poetry-dynamic-versioning -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
|
'poetry config experimental.new-installer false',
|
||||||
'poetry install',
|
'poetry install',
|
||||||
'poetry run bandit -r ./dockertidy -x ./dockertidy/test',
|
'poetry run bandit -r ./dockertidy -x ./dockertidy/test',
|
||||||
],
|
],
|
||||||
|
@ -201,7 +204,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'python:3.9-alpine',
|
image: 'python:3.9-alpine',
|
||||||
commands: [
|
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',
|
'git fetch -tq',
|
||||||
'pip install poetry poetry-dynamic-versioning -qq',
|
'pip install poetry poetry-dynamic-versioning -qq',
|
||||||
'poetry build',
|
'poetry build',
|
||||||
|
|
|
@ -12,6 +12,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
|
- poetry config experimental.new-installer false
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run yapf -dr ./dockertidy
|
- poetry run yapf -dr ./dockertidy
|
||||||
environment:
|
environment:
|
||||||
|
@ -22,6 +23,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
|
- poetry config experimental.new-installer false
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run flake8 ./dockertidy
|
- poetry run flake8 ./dockertidy
|
||||||
environment:
|
environment:
|
||||||
|
@ -141,6 +143,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
|
- poetry config experimental.new-installer false
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run bandit -r ./dockertidy -x ./dockertidy/test
|
- poetry run bandit -r ./dockertidy -x ./dockertidy/test
|
||||||
environment:
|
environment:
|
||||||
|
@ -383,7 +386,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.9-alpine
|
image: python:3.9-alpine
|
||||||
commands:
|
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
|
- git fetch -tq
|
||||||
- pip install poetry poetry-dynamic-versioning -qq
|
- pip install poetry poetry-dynamic-versioning -qq
|
||||||
- poetry build
|
- poetry build
|
||||||
|
@ -632,6 +635,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: d8149a65a34ade3b69589171c8d17827b18cc7ee1a3a8d9ee0fef173861f3fe5
|
hmac: db4b48de5638c20a72c6e2356b0f75efe61ecb600bfb3784caf5c5ff5909808a
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user