From 7f3c59ddb1cc8b2e385c3bdaa82f8d218d0d0286 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Mon, 3 Jul 2023 23:19:50 +0200 Subject: [PATCH] chore(): Migrates to using the same image --- .drone.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1986e0c..698ce24 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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