This commit is contained in:
parent
41d405ec08
commit
6fb7986a7a
43
.drone.yml
43
.drone.yml
@ -30,7 +30,47 @@ steps:
|
||||
GOARM: 7
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker:linux-arm
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: nemunaire/atsebay.t
|
||||
auto_tag: true
|
||||
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-arm64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: generate frontend
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- apk --no-cache add go-bindata
|
||||
- go generate -v
|
||||
|
||||
- name: vet
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go vet -v
|
||||
|
||||
- name: backend
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go get -v
|
||||
- go build -v
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: nemunaire/atsebay.t
|
||||
auto_tag: true
|
||||
@ -64,3 +104,4 @@ trigger:
|
||||
|
||||
depends_on:
|
||||
- build-arm
|
||||
- build-arm64
|
||||
|
Reference in New Issue
Block a user