tricks/.drone.yml
Elia el Lazkani 61248202d5
Some checks reported errors
continuous-integration/drone/push Build encountered an error
chore(): Adds pipelien to build container
2023-07-03 18:57:17 +02:00

50 lines
903 B
YAML

---
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