chore(): Migrates promotion to renaming
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
67cdb1288e
commit
e3f778db27
1 changed files with 7 additions and 14 deletions
21
.drone.yml
21
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue