This commit is contained in:
parent
8b4d21fa12
commit
5960324d10
1 changed files with 28 additions and 4 deletions
32
.drone.yml
32
.drone.yml
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish
|
- name: publish sha
|
||||||
image: banzaicloud/drone-kaniko
|
image: banzaicloud/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: registry.fromouter.space
|
registry: registry.fromouter.space
|
||||||
|
@ -13,14 +14,37 @@ steps:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
auto_tag: true
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_COMMIT_SHA}
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- tag
|
|
||||||
|
|
||||||
|
- name: publish tag
|
||||||
|
image: banzaicloud/drone-kaniko
|
||||||
|
settings:
|
||||||
|
registry: registry.fromouter.space
|
||||||
|
repo: cenere/mabel
|
||||||
|
cache: true
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
tags:
|
||||||
|
- ${DRONE_COMMIT_BRANCH}
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: update dev deployment
|
||||||
|
image: ghcr.io/hamcha/shipit:main
|
||||||
|
environment:
|
||||||
|
SHIPIT_PROVIDER:
|
||||||
|
from_secret: shipit_provider
|
||||||
|
SHIPIT_CHANGES: '[{"templater":"yaml","file":"docker-compose.yml","changes":{"services.mabel-dev.image":"registry.fromouter.space/cenere/mabel:${DRONE_COMMIT_BRANCH}"}}]'
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 0523dfe3d24f6222fad03b9283b3d0d8183bdf40a532b2b83fb4d1ee652a6703
|
hmac: 633ff82c7f07a98c94e60fc8a96394d76dd3cfa06e61905a544997a20134fdbd
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue