chore(): Migrates promotion to renaming
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elia el Lazkani 2023-07-03 23:05:03 +02:00
parent 67cdb1288e
commit e3f778db27

View file

@ -49,22 +49,15 @@ kind: pipeline
name: build name: build
steps: steps:
- name: build-container - name: retag-container
image: plugins/docker image: ghcr.io/oras-project/oras:v1.0.0
settings: environment:
registry: scm.project42.io REGISTRY_USERNAME:
dockerfile: Dockerfile
username:
from_secret: registry_username from_secret: registry_username
password: REGISTRY_PASSWORD:
from_secret: registry_password from_secret: registry_password
repo: scm.project42.io/elia/trivy commands:
dry_run: false - oras cp --from-username "$REGISTRY_USERNAME" --from-password "$REGISTRY_PASSWORD" --to-username "$REGISTRY_USERNAME" --to-password "$REGISTRY_PASSWORD" "scm.project42.io/elia/trivy:${DRONE_COMMIT_SHA:0:8}" scm.project42.io/elia/trivy:production
squash: true
compress: true
tags:
- production
- "${DRONE_COMMIT_SHA:0:8}"
when: when:
event: event:
- promote - promote