Portfolio-DX/.drone.yml
Danilo Cesa 89631a71e1
All checks were successful
continuous-integration/drone/push Build is passing
build: handle running portfolio docker container
2025-08-02 10:54:06 +08:00

26 lines
520 B
YAML

kind: pipeline
name: portfolio
steps:
- name: build
image: docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t portfolio-image .
- name: deploy
image: docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker rm -f portfolio || true
- docker run -p 8180:8180 -d --name portfolio portfolio-image
volumes:
- name: dockersock
host:
path: /var/run/docker.sock