update
continuous-integration/drone/push Build is failing Details

master
icechen 2021-12-28 17:30:28 +08:00
parent 6173323c3d
commit 93218f6547
1 changed files with 51 additions and 2 deletions

View File

@ -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