--- kind: pipeline name: test-build-container steps: - name: check-container image: plugins/docker settings: registry: scm.project42.io dockerfile: Dockerfile username: from_secret: registry_username password: from_secret: registry_password repo: scm.project42.io/elia/trivy dry_run: true squash: true tags: - pre-scan - "${DRONE_COMMIT_SHA:0:8}" --- kind: pipeline name: build-container steps: - name: check-container image: plugins/docker settings: registry: scm.project42.io dockerfile: Dockerfile username: from_secret: registry_username password: from_secret: registry_password repo: scm.project42.io/elia/trivy dry_run: false squash: true tags: - production - "${DRONE_COMMIT_SHA:0:8}" depends_on: test-build-container trigger: event: - promote target: - production