diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..70e26d9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,50 @@ +--- +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