53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: publish sha
|
|
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:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA}
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- 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_SHA}"}}]'
|
|
when:
|
|
event:
|
|
- push
|
|
---
|
|
kind: signature
|
|
hmac: e9b973ceaa63776d94033c08315ef4e4c626518b403e3cc1efb671bada4f0cde
|
|
|
|
...
|