From e54be04d7a664aa48905e3ce3b93e1d1eda24d3b Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 20:28:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D1=83=20=D0=B4=D0=BB=D1=8F=20dro?= =?UTF-8?q?ne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5ecf873 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +type: docker +name: docker-with-buildx + +steps: + + - name: docker build an publish + image: 20.10.22-dind-alpine3.17 + environment: + DOCKER_REGISTRY_TOKEN: + from_secret: DOCKER_REGISTRY_TOKEN + DOCKER_IMAGE_NAME: + from_secret: DOCKER_IMAGE_NAME + DOCKER_REGISTRY_USER: + from_secret: DOCKER_REGISTRY_USER + commands: + - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin + - 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" + +trigger: + ref: + - refs/tags/v.*.*.* \ No newline at end of file