mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
drone ci build
This commit is contained in:
33
.drone.yml
Normal file
33
.drone.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/yunion.io/x/onecloud
|
||||
|
||||
branches: [ release/*, ci/* ]
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
tags: true
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:latest
|
||||
commands:
|
||||
- make cmd/climc
|
||||
- make cmd/cloudir
|
||||
- make cmd/glance
|
||||
- make cmd/region
|
||||
- make cmd/region-dns
|
||||
- make cmd/scheduler
|
||||
- make cmd/yunionconf
|
||||
|
||||
release-img:
|
||||
image: plugins/docker
|
||||
repo: registry.cn-beijing.aliyuncs.com/yunionio/onecloud
|
||||
registry: registry.cn-beijing.aliyuncs.com
|
||||
mirror: https://lms7sxqp.mirror.aliyuncs.com
|
||||
secrets: [ docker_username, docker_password ]
|
||||
tags:
|
||||
- "${DRONE_TAG}"
|
||||
when:
|
||||
event: tag
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM alpine:3.8
|
||||
|
||||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
# Fix binary file not found, see:
|
||||
# https://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker
|
||||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
|
||||
ADD ./_output/bin/climc /opt/yunion/bin/climc
|
||||
ADD ./_output/bin/cloudir /opt/yunion/bin/cloudir
|
||||
ADD ./_output/bin/glance /opt/yunion/bin/glance
|
||||
ADD ./_output/bin/region /opt/yunion/bin/region
|
||||
ADD ./_output/bin/region-dns /opt/yunion/bin/region-dns
|
||||
ADD ./_output/bin/scheduler /opt/yunion/bin/scheduler
|
||||
ADD ./_output/bin/webconsole /opt/yunion/bin/webconsole
|
||||
ADD ./_output/bin/yunionconf /opt/yunion/bin/yunionconf
|
||||
Reference in New Issue
Block a user