mirror of
https://github.com/thegeeklab/git-batch.git
synced 2024-11-25 12:30:40 +00:00
fix: add missing build dependencies for cryptography (#22)
This commit is contained in:
parent
088e864aad
commit
2946e7268e
@ -1,7 +1,6 @@
|
||||
local PythonVersion(pyversion='3.6') = {
|
||||
name: 'python' + std.strReplace(pyversion, '.', '') + '-pytest',
|
||||
image: 'python:' + pyversion,
|
||||
pull: 'always',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -40,7 +39,6 @@ local PipelineLint = {
|
||||
{
|
||||
name: 'flake8',
|
||||
image: 'python:3.9',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -77,12 +75,12 @@ local PipelineTest = {
|
||||
PythonVersion(pyversion='3.8'),
|
||||
PythonVersion(pyversion='3.9'),
|
||||
],
|
||||
trigger: {
|
||||
ref: ['refs/heads/main', 'refs/tags/**', 'refs/pull/**'],
|
||||
},
|
||||
depends_on: [
|
||||
'lint',
|
||||
],
|
||||
trigger: {
|
||||
ref: ['refs/heads/main', 'refs/tags/**', 'refs/pull/**'],
|
||||
},
|
||||
};
|
||||
|
||||
local PipelineSecurity = {
|
||||
@ -96,7 +94,6 @@ local PipelineSecurity = {
|
||||
{
|
||||
name: 'bandit',
|
||||
image: 'python:3.9',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
PY_COLORS: 1,
|
||||
},
|
||||
@ -189,10 +186,11 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'python:3.9',
|
||||
pull: 'always',
|
||||
image: 'python:3.9-alpine',
|
||||
commands: [
|
||||
'apk --update --quiet add build-base libffi-dev musl-dev libressl-dev python3-dev cargo git',
|
||||
'git fetch -tq',
|
||||
'pip install --upgrade --no-cache-dir pip',
|
||||
'pip install poetry poetry-dynamic-versioning -qq',
|
||||
'poetry build',
|
||||
],
|
||||
@ -200,18 +198,17 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
{
|
||||
name: 'dryrun',
|
||||
image: 'thegeeklab/drone-docker:19',
|
||||
pull: 'always',
|
||||
settings: {
|
||||
dry_run: true,
|
||||
dockerfile: 'docker/Dockerfile.' + arch,
|
||||
repo: 'thegeeklab/git-batch',
|
||||
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
||||
username: { from_secret: 'docker_username' },
|
||||
password: { from_secret: 'docker_password' },
|
||||
},
|
||||
depends_on: ['build'],
|
||||
when: {
|
||||
ref: ['refs/pull/**'],
|
||||
},
|
||||
depends_on: ['build'],
|
||||
},
|
||||
{
|
||||
name: 'publish-dockerhub',
|
||||
@ -293,6 +290,7 @@ local PipelineNotifications = {
|
||||
},
|
||||
{
|
||||
name: 'pushrm-dockerhub',
|
||||
pull: 'always',
|
||||
image: 'chko/docker-pushrm:1',
|
||||
environment: {
|
||||
DOCKER_PASS: {
|
||||
@ -311,6 +309,7 @@ local PipelineNotifications = {
|
||||
},
|
||||
{
|
||||
name: 'pushrm-quay',
|
||||
pull: 'always',
|
||||
image: 'chko/docker-pushrm:1',
|
||||
environment: {
|
||||
APIKEY__QUAY_IO: {
|
||||
|
34
.drone.yml
34
.drone.yml
@ -18,7 +18,6 @@ steps:
|
||||
PY_COLORS: 1
|
||||
|
||||
- name: flake8
|
||||
pull: always
|
||||
image: python:3.9
|
||||
commands:
|
||||
- git fetch -tq
|
||||
@ -49,7 +48,6 @@ steps:
|
||||
- git fetch -tq
|
||||
|
||||
- name: python36-pytest
|
||||
pull: always
|
||||
image: python:3.6
|
||||
commands:
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -62,7 +60,6 @@ steps:
|
||||
- fetch
|
||||
|
||||
- name: python37-pytest
|
||||
pull: always
|
||||
image: python:3.7
|
||||
commands:
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -75,7 +72,6 @@ steps:
|
||||
- fetch
|
||||
|
||||
- name: python38-pytest
|
||||
pull: always
|
||||
image: python:3.8
|
||||
commands:
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -88,7 +84,6 @@ steps:
|
||||
- fetch
|
||||
|
||||
- name: python39-pytest
|
||||
pull: always
|
||||
image: python:3.9
|
||||
commands:
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
@ -119,7 +114,6 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: bandit
|
||||
pull: always
|
||||
image: python:3.9
|
||||
commands:
|
||||
- git fetch -tq
|
||||
@ -208,22 +202,22 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
image: python:3.9
|
||||
image: python:3.9-alpine
|
||||
commands:
|
||||
- apk --update --quiet add build-base libffi-dev musl-dev libressl-dev python3-dev cargo git
|
||||
- git fetch -tq
|
||||
- pip install --upgrade --no-cache-dir pip
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
- poetry build
|
||||
|
||||
- name: dryrun
|
||||
pull: always
|
||||
image: thegeeklab/drone-docker:19
|
||||
settings:
|
||||
dockerfile: docker/Dockerfile.amd64
|
||||
dry_run: true
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: thegeeklab/git-batch
|
||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
when:
|
||||
@ -288,22 +282,22 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
image: python:3.9
|
||||
image: python:3.9-alpine
|
||||
commands:
|
||||
- apk --update --quiet add build-base libffi-dev musl-dev libressl-dev python3-dev cargo git
|
||||
- git fetch -tq
|
||||
- pip install --upgrade --no-cache-dir pip
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
- poetry build
|
||||
|
||||
- name: dryrun
|
||||
pull: always
|
||||
image: thegeeklab/drone-docker:19
|
||||
settings:
|
||||
dockerfile: docker/Dockerfile.arm64
|
||||
dry_run: true
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: thegeeklab/git-batch
|
||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
when:
|
||||
@ -368,22 +362,22 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
image: python:3.9
|
||||
image: python:3.9-alpine
|
||||
commands:
|
||||
- apk --update --quiet add build-base libffi-dev musl-dev libressl-dev python3-dev cargo git
|
||||
- git fetch -tq
|
||||
- pip install --upgrade --no-cache-dir pip
|
||||
- pip install poetry poetry-dynamic-versioning -qq
|
||||
- poetry build
|
||||
|
||||
- name: dryrun
|
||||
pull: always
|
||||
image: thegeeklab/drone-docker:19
|
||||
settings:
|
||||
dockerfile: docker/Dockerfile.arm
|
||||
dry_run: true
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: thegeeklab/git-batch
|
||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
when:
|
||||
@ -476,6 +470,7 @@ steps:
|
||||
- success
|
||||
|
||||
- name: pushrm-dockerhub
|
||||
pull: always
|
||||
image: chko/docker-pushrm:1
|
||||
environment:
|
||||
DOCKER_PASS:
|
||||
@ -490,6 +485,7 @@ steps:
|
||||
- success
|
||||
|
||||
- name: pushrm-quay
|
||||
pull: always
|
||||
image: chko/docker-pushrm:1
|
||||
environment:
|
||||
APIKEY__QUAY_IO:
|
||||
@ -533,6 +529,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: c1bacd19c919a65a0fc3439efa332e269e4b90ba9b2a31610f2abb39e640709a
|
||||
hmac: 3aab823250dbdf8f5078e4239f40bfa472c425f8bf61ffef87650cfcf88629c2
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user