From 69b806fcf58632306687481ed20c88fb54535d17 Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 9 Dec 2022 00:22:03 +0400 Subject: [PATCH] tag shell scripting --- .drone.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8af2cb3..e88078e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,14 @@ kind: pipeline name: build-and-upload steps: + - name: send-tags-to-tags-file + image: alpine + when: + event: + - push + - pull_request + commands: + - echo -n "latest, $(date +'%Y-%m-%d'), ${DRONE_COMMIT_SHA:0:7}, ${DRONE_COMMIT_SHA}, ${DRONE_BRANCH}" > .tags - name: build-and-push image: plugins/docker environment: @@ -10,12 +18,7 @@ steps: network_mode: bridge settings: repo: sneak/builder - custom_dns: [116.202.204.30] - tags: - - ${DRONE_COMMIT_SHA} - - "${DRONE_COMMIT_SHA:0:7}" - - ${DRONE_BRANCH} - - latest + force_tag: true username: from_secret: DOCKER_USERNAME password: