39 řádky
689 B
YAML
39 řádky
689 B
YAML
---
|
|
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 |