add drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Hamcha 2023-11-11 19:53:40 +01:00
parent 776d65d384
commit f499f69f7f
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

53
.drone.yml Normal file
View file

@ -0,0 +1,53 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: publish sha
image: banzaicloud/drone-kaniko
settings:
registry: registry.fromouter.space
repo: strimertul/release-info
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: strimertul/release-info
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.release-info.image":"registry.fromouter.space/strimertul/release-info:${DRONE_COMMIT_SHA}"}}]'
when:
event:
- push
---
kind: signature
hmac: 7092b790e12c560620f8c067d20c3036d69ff8d30ffb35312890bec8604dd868
...