Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivy #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions .drone-v1.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# ---
---
kind: pipeline
name: default
type: kubernetes

platform:
os: linux
arch: amd64
Expand All @@ -11,22 +12,29 @@ steps:
pull: if-not-exists
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quay.io/ukhomeofficedigital/dq-postgres-alpine
registry: quay.io
dockerfile: Dockerfile
force_tag: true
registry: quay.io
repo: quay.io/ukhomeofficedigital/dq-postgres-alpine
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BUILD_NUMBER}
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
- ${DRONE_COMMIT_SHA}
- ${DRONE_BUILD_NUMBER}
when:
event:
- push

- name: trivy_scan
pull: if-not-exists
image: quay.io/ukhomeofficedigital/trivyscanner:b82
commands:
- trivy --ignore-unfixed --exit-code 1 --no-progress quay.io/ukhomeofficedigital/dq-postgres-alpine:${DRONE_COMMIT_SHA}
when:
branch:
exclude:
- master
event:
- push

services:
- name: docker
image: 340268328991.dkr.ecr.eu-west-2.amazonaws.com/acp/dind
14 changes: 0 additions & 14 deletions .drone.yml

This file was deleted.