CI: Build container for arm, and speed-up arm64 generation
This commit is contained in:
parent
3a5a9366a5
commit
156c894e07
|
@ -1,4 +1,3 @@
|
|||
happydns
|
||||
bindata.go
|
||||
vendor/
|
||||
happydns.db/
|
||||
|
|
15
.drone.yml
15
.drone.yml
|
@ -142,6 +142,7 @@ steps:
|
|||
- sed -i '/yarn --cwd htdocs --offline build/d' static.go
|
||||
- go generate -v
|
||||
- go build -v -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
- ln happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} happydns
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
|
@ -183,6 +184,7 @@ steps:
|
|||
repo: happydns/happydns
|
||||
auto_tag: true
|
||||
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
dockerfile: Dockerfile-builded
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
|
@ -297,6 +299,7 @@ steps:
|
|||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go build -v -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7
|
||||
- ln happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7 happydns
|
||||
environment:
|
||||
GOARM: 7
|
||||
|
||||
|
@ -334,6 +337,18 @@ steps:
|
|||
event:
|
||||
- tag
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: happydns/happydns
|
||||
auto_tag: true
|
||||
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
dockerfile: Dockerfile-builded
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: docker-manifest
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
FROM alpine
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
CMD ["happydns"]
|
||||
|
||||
ENV HAPPYDNS_LEVELDB_PATH=/data/happydns.db
|
||||
|
||||
VOLUME /data
|
||||
|
||||
COPY happydns /usr/sbin/happydns
|
Loading…
Reference in New Issue