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