chore(): Migrate to using tricks and the latest version
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
7f3c59ddb1
commit
88619706c1
1 changed files with 6 additions and 7 deletions
13
.drone.yml
13
.drone.yml
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: test
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: test-build-container
|
||||
|
@ -33,7 +33,6 @@ steps:
|
|||
squash: true
|
||||
compress: true
|
||||
tags:
|
||||
- pre-scan
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
depends_on:
|
||||
- test-build-container
|
||||
|
@ -49,12 +48,12 @@ name: scan
|
|||
|
||||
steps:
|
||||
- name: trivy-scan
|
||||
image: scm.project42.io/elia/tricks:production
|
||||
image: scm.project42.io/elia/tricks:latest
|
||||
commands:
|
||||
- trivy image --image-src remote scm.project42.io/elia/tricks:"${DRONE_COMMIT_SHA:0:8}"
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
- build
|
||||
|
||||
trigger:
|
||||
exclude:
|
||||
|
@ -63,18 +62,18 @@ trigger:
|
|||
|
||||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: promote-container
|
||||
image: scm.project42.io/elia/tricks:production
|
||||
image: scm.project42.io/elia/tricks:latest
|
||||
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:production
|
||||
- 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:latest
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
|
|
Loading…
Reference in a new issue