From f499f69f7f9ed076e9cf8f538b403a0856afa271 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 11 Nov 2023 19:53:40 +0100 Subject: [PATCH] add drone --- .drone.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..00496d0 --- /dev/null +++ b/.drone.yml @@ -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 + +...