---
kind: pipeline
type: docker
name: build-arm64
platform:
os: linux
arch: arm64
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
- apk --no-cache add build-base
- go vet -v -buildvcs=false
- name: backend
- go get -v
- go build -v -buildvcs=false -ldflags="-s -w"
- name: publish
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
trigger:
event:
- cron
- push
- tag
name: docker-manifest
image: plugins/manifest
ignore_missing: true
spec: .drone-manifest.yml
depends_on:
- build-arm64