update
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
6173323c3d
commit
93218f6547
53
.drone.yml
53
.drone.yml
|
@ -1,2 +1,51 @@
|
||||||
type: json
|
kind: pipeline
|
||||||
modlue: go
|
type: docker
|
||||||
|
name: 部署brahma-api
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: clone
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git clone ${DRONE_REMOTE_URL} .
|
||||||
|
- git checkout $DRONE_COMMIT
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: plugins/docker
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: reg_username
|
||||||
|
password:
|
||||||
|
from_secret: reg_password
|
||||||
|
repo: reg.icechen.cn/zeus/admin-api
|
||||||
|
registry: reg.icechen.cn
|
||||||
|
tags: ${DRONE_COMMIT:0:8}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
- name: run
|
||||||
|
image: docker/compose
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- export TAG=${DRONE_COMMIT:0:8}
|
||||||
|
- docker-compose -p admin-api down
|
||||||
|
- docker-compose -p admin-api up -d
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
Loading…
Reference in New Issue