Сборка
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2022-12-18 00:48:39 +03:00
parent d00b2f83df
commit c0bccd0091

View File

@ -7,13 +7,15 @@ steps:
- name: docker build an publish - name: docker build an publish
image: docker:dind image: docker:dind
environment: environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_REGISTRY_TOKEN: DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN from_secret: DOCKER_REGISTRY_TOKEN
DOCKER_IMAGE_NAME: DOCKER_IMAGE_NAME:
from_secret: DOCKER_IMAGE_NAME from_secret: DOCKER_IMAGE_NAME
DOCKER_REGISTRY_USER: DOCKER_REGISTRY_USER:
from_secret: DOCKER_REGISTRY_USER from_secret: DOCKER_REGISTRY_USER
volumes:
- name: dockersock
path: /var/run
commands: commands:
- sleep 15 - sleep 15
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin
@ -31,3 +33,10 @@ services:
- name: docker - name: docker
image: docker:dind image: docker:dind
privileged: true privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}