From 89eab906e4b4e3c53493bfc343e719ffe8d3ae62 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Wed, 3 Nov 2021 09:25:42 +0100 Subject: [PATCH] updated drone config --- .drone.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c898d0b..350df03 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,27 @@ kind: pipeline +type: docker name: default steps: - name: build_and_publish image: plugins/docker:linux-amd64 - pull: always settings: - auto_tag: true - daemon_off: false + dockerfile: docker/Dockerfile force_tag: true password: from_secret: docker_password registry: docker.asperti.com repo: docker.asperti.com/paspo/ftps username: - from_secret: docker_username \ No newline at end of file + from_secret: docker_username + tags: + - latest + - ${DRONE_TAG} + - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} + when: + event: + - tag + +trigger: + event: + - tag