Настройка CICD с помощью Drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2022-12-18 01:21:41 +03:00
parent c559bc379a
commit 873963bdc0

View File

@ -20,8 +20,10 @@ steps:
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
- 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 buildx create --use - docker buildx create --use
- docker buildx build --push --platform linux/amd64,linux/arm64/v8 -t "$DOCKER_IMAGE_NAME:develop" . - docker buildx build --push --platform linux/amd64,linux/arm64/v8 -t "$DOCKER_IMAGE_NAME:develop" .
@ -32,15 +34,12 @@ trigger:
services: services:
- name: docker - name: docker
image: docker:dind image: docker:20.10.22-dind-alpine3.17
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
volumes: volumes:
- name: m2
host:
path: /drone/volume/m2
- name: dockersock - name: dockersock
temp: {} temp: {}