This commit is contained in:
parent
8630d66e64
commit
8138af8e7c
51
.drone.yml
51
.drone.yml
@ -1,56 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-arm
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: arm
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build front
|
|
||||||
image: node:21-alpine
|
|
||||||
commands:
|
|
||||||
- mkdir deploy
|
|
||||||
- cd ui
|
|
||||||
- npm install --network-timeout=100000
|
|
||||||
- npm run build
|
|
||||||
- tar chjf ../deploy/static.tar.bz2 build
|
|
||||||
|
|
||||||
- name: vet
|
|
||||||
image: golang:1-alpine
|
|
||||||
commands:
|
|
||||||
- apk --no-cache add build-base
|
|
||||||
- go vet -v -buildvcs=false
|
|
||||||
|
|
||||||
- name: backend armv7
|
|
||||||
image: golang:1-alpine
|
|
||||||
commands:
|
|
||||||
- apk --no-cache add build-base
|
|
||||||
- go get -v
|
|
||||||
- go build -v -buildvcs=false -ldflags="-s -w"
|
|
||||||
environment:
|
|
||||||
GOARM: 7
|
|
||||||
|
|
||||||
- name: publish
|
|
||||||
image: plugins/docker:linux-arm
|
|
||||||
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
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
- push
|
|
||||||
- tag
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-arm64
|
name: build-arm64
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
@ -119,5 +69,4 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-arm
|
|
||||||
- build-arm64
|
- build-arm64
|
||||||
|
Reference in New Issue
Block a user