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: steps:
- name: trivy-scan - name: trivy-scan
image: scm.project42.io/elia/trivy:production image: scm.project42.io/elia/tricks:production
commands: commands:
- trivy image --image-src remote scm.project42.io/elia/tricks:"${DRONE_COMMIT_SHA:0:8}" - 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: depends_on:
- test - test
@ -78,8 +66,8 @@ kind: pipeline
name: build name: build
steps: steps:
- name: retag-container - name: promote-container
image: ghcr.io/oras-project/oras:v1.0.0 image: scm.project42.io/elia/tricks:production
environment: environment:
REGISTRY_USERNAME: REGISTRY_USERNAME:
from_secret: registry_username from_secret: registry_username