From d9679761c1a4538bbca0ee9a83a5fad0443afb5d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 6 Aug 2022 20:22:13 +0200 Subject: [PATCH] Doku + Org-Secrets --- .drone.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 168a6fe..4881bfe 100644 --- a/.drone.yml +++ b/.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: