This commit is contained in:
parent
39af3b560b
commit
0c0103f61c
48
.drone.yml
48
.drone.yml
@ -3,19 +3,19 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-cache-with-filesystem
|
- name: restore-cache-with-filesystem
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
settings:
|
settings:
|
||||||
backend: "filesystem"
|
backend: "filesystem"
|
||||||
restore: true
|
restore: true
|
||||||
cache_key: "{{ .Repo.Name }}"
|
cache_key: "{{ .Repo.Name }}"
|
||||||
archive_format: "gzip"
|
archive_format: "gzip"
|
||||||
filesystem_cache_root: "/tmp/cache"
|
filesystem_cache_root: "/tmp/cache"
|
||||||
mount:
|
mount:
|
||||||
- '.pipcache'
|
- '.pipcache'
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
|
|
||||||
- name: static_analysis
|
- name: static_analysis
|
||||||
image: "python:3.8"
|
image: "python:3.8"
|
||||||
@ -28,17 +28,17 @@ steps:
|
|||||||
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
||||||
- bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
- bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
||||||
|
|
||||||
- name: rebuild-cache-with-filesystem
|
- name: rebuild-cache-with-filesystem
|
||||||
image: meltwater/drone-cache:dev
|
image: meltwater/drone-cache:dev
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
backend: "filesystem"
|
backend: "filesystem"
|
||||||
rebuild: true
|
rebuild: true
|
||||||
cache_key: "{{ .Repo.Name }}"
|
cache_key: "{{ .Repo.Name }}"
|
||||||
archive_format: "gzip"
|
archive_format: "gzip"
|
||||||
filesystem_cache_root: "/tmp/cache"
|
filesystem_cache_root: "/tmp/cache"
|
||||||
mount:
|
mount:
|
||||||
- '.pipcache'
|
- '.pipcache'
|
||||||
|
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
image: banzaicloud/drone-kaniko
|
image: banzaicloud/drone-kaniko
|
||||||
|
Reference in New Issue
Block a user