Doku + Org-Secrets
This commit is contained in:
parent
17a43ae3bc
commit
d9679761c1
1 changed files with 8 additions and 3 deletions
11
.drone.yml
11
.drone.yml
|
@ -3,10 +3,13 @@ kind: pipeline
|
|||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
# prüfe ob secrets im Repo sind
|
||||
- name: run gitleaks
|
||||
image: plugins/gitleaks
|
||||
settings:
|
||||
path: .
|
||||
|
||||
# linter für Dockerfiles
|
||||
# https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
|
||||
- name: hadolint
|
||||
image: hadolint/hadolint:latest-debian
|
||||
|
@ -14,13 +17,15 @@ steps:
|
|||
commands:
|
||||
- hadolint --version
|
||||
- hadolint Dockerfile
|
||||
|
||||
# Bauen, taggen und pushen
|
||||
- name: docker_build_and_push
|
||||
image: plugins/docker
|
||||
environment:
|
||||
http_proxy: http://acng.grote.lan:9999
|
||||
settings:
|
||||
# Dockerhub-Username
|
||||
username: quotengrote
|
||||
# als Org-Secret hinterlegt
|
||||
username:
|
||||
from_secret: DOCKERHUB_USER
|
||||
# Dockerhub-Password
|
||||
# als Org-Secret hinterlegt
|
||||
password:
|
||||
|
|
Loading…
Reference in a new issue