Restored drone image detection #94
10
.drone.yml
10
.drone.yml
@@ -8,7 +8,7 @@ clone:
|
||||
|
||||
steps:
|
||||
- name: build-test-publish
|
||||
image: nexus.khongisa.co.za/sdk:10.0
|
||||
image: nexus.khongisa.co.za/mcr.microsoft.com/dotnet/sdk:10.0
|
||||
commands:
|
||||
- dotnet restore --source https://nexus.khongisa.co.za/repository/nuget-group/index.json --no-cache
|
||||
- dotnet build --configuration Release --no-restore
|
||||
@@ -18,7 +18,7 @@ steps:
|
||||
# --- PACKAGE STAGE ---
|
||||
# We build the image locally first so we can scan it BEFORE pushing
|
||||
- name: docker-build
|
||||
image: nexus.khongisa.co.za/docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: nexus.khongisa.co.za
|
||||
repo: nexus.khongisa.co.za/webapitest
|
||||
@@ -32,7 +32,7 @@ steps:
|
||||
# Set to false once you verify the scan passes, or see the step below
|
||||
|
||||
- name: docker-push
|
||||
image: nexus.khongisa.co.za/docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: nexus.khongisa.co.za
|
||||
repo: nexus.khongisa.co.za/webapitest
|
||||
@@ -43,7 +43,7 @@ steps:
|
||||
from_secret: docker_password
|
||||
|
||||
- name: vulnerability-scan
|
||||
image: nexus.khongisa.co.za/trivy
|
||||
image: aquasec/trivy:0.50.1
|
||||
environment:
|
||||
# Trivy needs these to pull the image from your Nexus to scan it
|
||||
TRIVY_USERNAME:
|
||||
@@ -55,7 +55,7 @@ steps:
|
||||
|
||||
# --- DEPLOY STAGE ---
|
||||
- name: deploy-uat
|
||||
image: nexus.khongisa.co.za/drone-ssh
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
|
||||
Reference in New Issue
Block a user