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
|
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
|
||||||
|
|
Loading…
Reference in a new issue