Настройка CICD с помощью Drone
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f9259f558b
commit
c559bc379a
11
.drone.yml
11
.drone.yml
@ -21,6 +21,7 @@ steps:
|
|||||||
DOCKER_REGISTRY_USER:
|
DOCKER_REGISTRY_USER:
|
||||||
from_secret: DOCKER_REGISTRY_USER
|
from_secret: DOCKER_REGISTRY_USER
|
||||||
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" .
|
||||||
@ -29,7 +30,17 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
host:
|
host:
|
||||||
path: /drone/volume/m2
|
path: /drone/volume/m2
|
||||||
|
- name: dockersock
|
||||||
|
temp: { }
|
Loading…
Reference in New Issue
Block a user