This commit is contained in:
parent
776d65d384
commit
f499f69f7f
1 changed files with 53 additions and 0 deletions
53
.drone.yml
Normal file
53
.drone.yml
Normal 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
|
||||||
|
|
||||||
|
...
|
Reference in a new issue