From 49c4ed1a9b56693a9c0fb9016473e99f2ceff615 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 15 Feb 2023 21:23:03 +0100 Subject: [PATCH] changed the drone config a bit --- .drone.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1a783da..f666785 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,12 +7,6 @@ steps: commands: - go test -v ./... - go build -v -o ./bin/drone-example . - ---- -kind: pipeline -name: deploy - -steps: - name: deploy image: docker:cli volumes: @@ -22,14 +16,13 @@ steps: - docker build -t drone-example . - docker rm -f drone-example - docker run -d -p 127.241.212.77:1098:5000 --restart always --name drone-example drone-example + when: + event: + - promote + target: + - production volumes: - name: docker-socket host: path: /var/run/docker.sock - -trigger: - event: - - promote - target: - - production