Doku + Org-Secrets

This commit is contained in:
Michael Grote 2022-08-06 20:22:13 +02:00
parent 17a43ae3bc
commit d9679761c1

View file

@ -3,10 +3,13 @@ kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
# prüfe ob secrets im Repo sind
- name: run gitleaks - name: run gitleaks
image: plugins/gitleaks image: plugins/gitleaks
settings: settings:
path: . path: .
# linter für Dockerfiles
# https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md # https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
- name: hadolint - name: hadolint
image: hadolint/hadolint:latest-debian image: hadolint/hadolint:latest-debian
@ -14,13 +17,15 @@ steps:
commands: commands:
- hadolint --version - hadolint --version
- hadolint Dockerfile - hadolint Dockerfile
# Bauen, taggen und pushen
- name: docker_build_and_push - name: docker_build_and_push
image: plugins/docker image: plugins/docker
environment:
http_proxy: http://acng.grote.lan:9999
settings: settings:
# Dockerhub-Username # Dockerhub-Username
username: quotengrote # als Org-Secret hinterlegt
username:
from_secret: DOCKERHUB_USER
# Dockerhub-Password # Dockerhub-Password
# als Org-Secret hinterlegt # als Org-Secret hinterlegt
password: password: