chore(): Migrates to using the same image
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Elia el Lazkani 2023-07-03 23:19:50 +02:00
parent 7189e6fda9
commit 7f3c59ddb1

View file

@ -49,22 +49,10 @@ name: scan
steps:
- name: trivy-scan
image: scm.project42.io/elia/trivy:production
image: scm.project42.io/elia/tricks:production
commands:
- trivy image --image-src remote scm.project42.io/elia/tricks:"${DRONE_COMMIT_SHA:0:8}"
- name: retag-container
image: ghcr.io/oras-project/oras:v1.0.0
environment:
REGISTRY_USERNAME:
from_secret: registry_username
REGISTRY_PASSWORD:
from_secret: registry_password
commands:
- oras cp --from-username "$REGISTRY_USERNAME" --from-password "$REGISTRY_PASSWORD" --to-username "$REGISTRY_USERNAME" --to-password "$REGISTRY_PASSWORD" "scm.project42.io/elia/tricks:${DRONE_COMMIT_SHA:0:8}" scm.project42.io/elia/tricks:post-scan
depends_on:
- trivy-scan
depends_on:
- test
@ -78,8 +66,8 @@ kind: pipeline
name: build
steps:
- name: retag-container
image: ghcr.io/oras-project/oras:v1.0.0
- name: promote-container
image: scm.project42.io/elia/tricks:production
environment:
REGISTRY_USERNAME:
from_secret: registry_username