From 050ab4eaa7a8a791a9e8c726853597f994a2d19d Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 22 Aug 2024 12:54:37 +0300 Subject: [PATCH] cicd fixed --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1682622..f25581b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,11 +39,15 @@ steps: - name: docker publish develop image: docker.struchkov.dev/docker-buildx:latest environment: + DOCKER_REGISTRY_TOKEN: + from_secret: DOCKER_REGISTRY_TOKEN + DOCKER_REGISTRY_USER: from_secret: DOCKER_REGISTRY_USER volumes: - name: dockersock path: /var/run commands: + - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin - docker buildx create --use - docker buildx build -f Dockerfile-develop --push --platform linux/amd64,linux/arm64/v8 -t "docker.struchkov.dev/gitlab-notify:develop" . @@ -90,7 +94,13 @@ steps: volumes: - name: dockersock path: /var/run + environment: + DOCKER_REGISTRY_TOKEN: + from_secret: DOCKER_REGISTRY_TOKEN + DOCKER_REGISTRY_USER: + from_secret: DOCKER_REGISTRY_USER commands: + - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin - docker buildx create --use - docker buildx build --push --platform linux/amd64,linux/arm64/v8 -t "docker.struchkov.dev/gitlab-notify:latest" -t "docker.struchkov.dev/gitlab-notify:$DRONE_TAG" . @@ -191,6 +201,6 @@ steps: # drone sign --save Telegram-Bots/gitlab-notification --- kind: signature -hmac: 0f4fa66591566ee4272ac8c36e887966037a407a1441575ef26e1813205a7ae8 +hmac: 09a32cb9330dec903b4b91e26dd962cccdc495dec9696f09b8544db9bf8b61ae ...