From 5960324d100a79198d97b923d10b8eee0845818a Mon Sep 17 00:00:00 2001 From: Hamcha Date: Wed, 5 Jul 2023 16:22:53 +0200 Subject: [PATCH] add shipit --- .drone.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index f467e8d..029fe89 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ...