cicd fixed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-08-22 12:54:37 +03:00
parent f58258107f
commit 050ab4eaa7
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -39,11 +39,15 @@ steps:
- name: docker publish develop - name: docker publish develop
image: docker.struchkov.dev/docker-buildx:latest image: docker.struchkov.dev/docker-buildx:latest
environment: environment:
DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN
DOCKER_REGISTRY_USER:
from_secret: DOCKER_REGISTRY_USER from_secret: DOCKER_REGISTRY_USER
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
commands: commands:
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
- docker buildx create --use - docker buildx create --use
- docker buildx build -f Dockerfile-develop --push --platform linux/amd64,linux/arm64/v8 -t "docker.struchkov.dev/gitlab-notify:develop" . - 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: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
environment:
DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN
DOCKER_REGISTRY_USER:
from_secret: DOCKER_REGISTRY_USER
commands: commands:
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
- docker buildx create --use - 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" . - 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 # drone sign --save Telegram-Bots/gitlab-notification
--- ---
kind: signature kind: signature
hmac: 0f4fa66591566ee4272ac8c36e887966037a407a1441575ef26e1813205a7ae8 hmac: 09a32cb9330dec903b4b91e26dd962cccdc495dec9696f09b8544db9bf8b61ae
... ...