From 31b568346a528cfabe30e55317ee8da7cbd3961c Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 18 Dec 2022 01:01:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e03453..9e495a9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,26 +18,24 @@ steps: - name: dockersock path: /var/run commands: - # - sleep 15 + - sleep 15 - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin - - docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" . + - docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" -t "$DOCKER_IMAGE_NAME:$DRONE_TAG" . - docker push "$DOCKER_IMAGE_NAME:latest" - # - docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG" + - docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG" trigger: - branch: - - main - # ref: - # - refs/tags/v.*.*.* + ref: + - refs/tags/v.*.*.* -# services: -# - name: docker -# image: docker:dind -# privileged: true -# volumes: -# - name: dockersock -# path: /var/run +services: +- name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run -# volumes: -# - name: dockersock -# temp: {} \ No newline at end of file +volumes: +- name: dockersock + temp: {} \ No newline at end of file