Portfolio-DX/.drone.yml
Danilo Cesa cdd74131b9
All checks were successful
continuous-integration/drone/push Build is passing
build: add container name
2025-08-02 10:33:46 +08:00

26 lines
511 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 stop portfolio
- docker run -p 8180:8180 -d portfolio-image --name portfolio
volumes:
- name: dockersock
host:
path: /var/run/docker.sock