From 7997128fd07e0819648a4d43e13eea44151ac4a2 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Thu, 23 May 2024 15:01:49 +0300 Subject: [PATCH] autodeploy --- .drone.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8c724a0..19adbe6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,19 @@ steps: from_secret: CI_APP_IMAGE tags: - latest + - name: deploy + image: alpine:latest + environment: + DEPLOYER_TOKEN: + from_secret: DEPLOYER_TOKEN + DEPLOYER_URL: + from_secret: DEPLOYER_URL + commands: + - apk add --no-cache curl + - curl -H \"Authorization: Bearer $DEPLOYER_TOKEN\" $DEPLOYER_URL + when: + branch: + - master trigger: event: