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
|
kind: pipeline
|
||||||
name: test
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test-build-container
|
- name: test-build-container
|
||||||
|
@ -33,7 +33,6 @@ steps:
|
||||||
squash: true
|
squash: true
|
||||||
compress: true
|
compress: true
|
||||||
tags:
|
tags:
|
||||||
- pre-scan
|
|
||||||
- "${DRONE_COMMIT_SHA:0:8}"
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
depends_on:
|
depends_on:
|
||||||
- test-build-container
|
- test-build-container
|
||||||
|
@ -49,12 +48,12 @@ name: scan
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: trivy-scan
|
- name: trivy-scan
|
||||||
image: scm.project42.io/elia/tricks:production
|
image: scm.project42.io/elia/tricks:latest
|
||||||
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}"
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- build
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -63,18 +62,18 @@ trigger:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: promote-container
|
- name: promote-container
|
||||||
image: scm.project42.io/elia/tricks:production
|
image: scm.project42.io/elia/tricks:latest
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_USERNAME:
|
REGISTRY_USERNAME:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
REGISTRY_PASSWORD:
|
REGISTRY_PASSWORD:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
commands:
|
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:
|
when:
|
||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
|
|
Loading…
Reference in a new issue