tricks/.drone.yml
Elia el Lazkani 4a0ba93df1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
chore(): Adds triggers and fixes steps names
2023-07-03 19:02:08 +02:00

60 lines
978 B
YAML

---
kind: pipeline
name: test
steps:
- name: test-build-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}"
trigger:
exclude:
event:
- promote
---
kind: pipeline
name: build
steps:
- name: build-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}"
when:
event:
- promote
target:
- production
depends_on:
- test
trigger:
event:
- promote
target:
- production