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
steps:
- name: build-container
image: plugins/docker
settings:
registry: scm.project42.io
dockerfile: Dockerfile
username:
- name: retag-container
image: ghcr.io/oras-project/oras:v1.0.0
environment:
REGISTRY_USERNAME:
from_secret: registry_username
password:
REGISTRY_PASSWORD:
from_secret: registry_password
repo: scm.project42.io/elia/trivy
dry_run: false
squash: true
compress: true
tags:
- production
- "${DRONE_COMMIT_SHA:0:8}"
commands:
- 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
when:
event:
- promote