add shipit
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Hamcha 2023-07-05 16:22:53 +02:00
parent 8b4d21fa12
commit 5960324d10
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -1,9 +1,10 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: publish
- name: publish sha
image: banzaicloud/drone-kaniko
settings:
registry: registry.fromouter.space
@ -13,14 +14,37 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
tags:
- latest
- ${DRONE_COMMIT_SHA}
when:
event:
- 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
hmac: 0523dfe3d24f6222fad03b9283b3d0d8183bdf40a532b2b83fb4d1ee652a6703
hmac: 633ff82c7f07a98c94e60fc8a96394d76dd3cfa06e61905a544997a20134fdbd
...