chore(): Adds pipelien to build container
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
6ae1ca2864
commit
61248202d5
1 changed files with 50 additions and 0 deletions
50
.drone.yml
Normal file
50
.drone.yml
Normal 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
|
Loading…
Reference in a new issue