chore(): Migrates to using the same image
This commit is contained in:
parent
7189e6fda9
commit
7f3c59ddb1
1 changed files with 3 additions and 15 deletions
18
.drone.yml
18
.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
|
||||
|
|
Loading…
Reference in a new issue