chore(): Adds pipelien to build container
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Elia el Lazkani 2023-07-03 18:57:17 +02:00
parent 6ae1ca2864
commit 61248202d5

50
.drone.yml Normal file
View file

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