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:
|
steps:
|
||||||
- name: trivy-scan
|
- name: trivy-scan
|
||||||
image: scm.project42.io/elia/trivy:production
|
image: scm.project42.io/elia/tricks:production
|
||||||
commands:
|
commands:
|
||||||
- trivy image --image-src remote scm.project42.io/elia/tricks:"${DRONE_COMMIT_SHA:0:8}"
|
- 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:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
@ -78,8 +66,8 @@ kind: pipeline
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: retag-container
|
- name: promote-container
|
||||||
image: ghcr.io/oras-project/oras:v1.0.0
|
image: scm.project42.io/elia/tricks:production
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_USERNAME:
|
REGISTRY_USERNAME:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
|
|
Loading…
Reference in a new issue