mt-ck-wcs-hd/6.program/.drone.yml

39 linhas
689 B
YAML

2021-07-08 18:02:26 +08:00
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockerconfig
path: /root/.docker
commands:
- docker build -t harbor.picaiba.com/wms/wms-cloud-api ./ && docker push harbor.picaiba.com/wms/wms-cloud-api
# - name: deploy
# image: docker:dind
# volumes:
# - name: dockersock
# path: /var/run/docker.sock
# commands:
# - docker service update mes_mes --force
# depends_on:
# - build
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: dockerconfig
host:
path: /root/.docker
trigger:
branch:
- develop
event:
- push