Portfolio-DX/.drone.yml
Danilo Cesa 49246ce9ee
Some checks failed
continuous-integration/drone/push Build is failing
build: change container name placement in drone config
2025-08-02 10:39:19 +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 --name portfolio portfolio-image
volumes:
- name: dockersock
host:
path: /var/run/docker.sock