сборка
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2022-12-18 01:00:11 +03:00
parent c0bccd0091
commit 5e59c40d17

View File

@ -6,6 +6,7 @@ steps:
- name: docker build an publish - name: docker build an publish
image: docker:dind image: docker:dind
privileged: true
environment: environment:
DOCKER_REGISTRY_TOKEN: DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN from_secret: DOCKER_REGISTRY_TOKEN
@ -17,7 +18,7 @@ steps:
- name: dockersock - name: dockersock
path: /var/run 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
- docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" . - docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" .
- docker push "$DOCKER_IMAGE_NAME:latest" - docker push "$DOCKER_IMAGE_NAME:latest"
@ -29,14 +30,14 @@ trigger:
# ref: # ref:
# - refs/tags/v.*.*.* # - refs/tags/v.*.*.*
services: # services:
- name: docker # - name: docker
image: docker:dind # image: docker:dind
privileged: true # privileged: true
volumes: # volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
volumes: # volumes:
- name: dockersock # - name: dockersock
temp: {} # temp: {}