another approach
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
aovantsev
2025-10-02 22:59:12 +03:00
parent 35e1ad9b9f
commit 20d64a6472

View File

@@ -4,15 +4,11 @@ name: default
steps:
- name: build-and-deploy
image: docker:20.10.16-dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ""
image: docker:20.10
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
# Start Docker daemon
- dockerd-entrypoint.sh &
- sleep 10
# Build the Docker image
- docker build -t localhost:5000/counter:latest .
@@ -32,6 +28,11 @@ steps:
# Test the API
- curl -f http://localhost:8080/ || exit 1
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
branch:
- main