2020-11-20 14:56:54 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
2022-03-01 12:46:44 +00:00
|
|
|
- name: build front
|
2022-10-18 22:03:59 +00:00
|
|
|
image: node:19-alpine
|
2022-03-01 12:46:44 +00:00
|
|
|
commands:
|
|
|
|
- mkdir deploy
|
|
|
|
- cd ui
|
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
|
|
|
- tar chjf ../deploy/static.tar.bz2 build
|
|
|
|
|
2020-11-20 14:56:54 +00:00
|
|
|
- name: vet
|
2022-03-20 02:15:09 +00:00
|
|
|
image: golang:1-alpine
|
2020-11-20 14:56:54 +00:00
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
2022-03-20 02:15:09 +00:00
|
|
|
- go vet -v -buildvcs=false
|
2020-11-20 14:56:54 +00:00
|
|
|
|
|
|
|
- name: backend armv7
|
2022-03-20 02:15:09 +00:00
|
|
|
image: golang:1-alpine
|
2020-11-20 14:56:54 +00:00
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go get -v
|
2022-03-20 02:15:09 +00:00
|
|
|
- go build -v -buildvcs=false -ldflags="-s -w"
|
2020-11-20 14:56:54 +00:00
|
|
|
environment:
|
|
|
|
GOARM: 7
|
|
|
|
|
|
|
|
- name: publish
|
2023-01-19 09:33:35 +00:00
|
|
|
image: plugins/docker:linux-arm
|
2021-09-15 16:00:59 +00:00
|
|
|
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
|
|
|
|
|
2022-05-01 18:18:42 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
2021-09-15 16:00:59 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
2022-03-01 12:46:44 +00:00
|
|
|
- name: build front
|
2022-10-18 22:03:59 +00:00
|
|
|
image: node:19-alpine
|
2022-03-01 12:46:44 +00:00
|
|
|
commands:
|
|
|
|
- mkdir deploy
|
|
|
|
- cd ui
|
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
|
|
|
- tar chjf ../deploy/static.tar.bz2 build
|
|
|
|
|
2021-09-15 16:00:59 +00:00
|
|
|
- name: vet
|
2022-03-20 02:15:09 +00:00
|
|
|
image: golang:1-alpine
|
2021-09-15 16:00:59 +00:00
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
2022-03-20 02:15:09 +00:00
|
|
|
- go vet -v -buildvcs=false
|
2021-09-15 16:00:59 +00:00
|
|
|
|
|
|
|
- name: backend
|
2022-03-20 02:15:09 +00:00
|
|
|
image: golang:1-alpine
|
2021-09-15 16:00:59 +00:00
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go get -v
|
2022-03-20 02:15:09 +00:00
|
|
|
- go build -v -buildvcs=false -ldflags="-s -w"
|
2021-09-15 16:00:59 +00:00
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/docker
|
2020-11-20 14:56:54 +00:00
|
|
|
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
|
|
|
|
|
2022-05-01 18:18:42 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
2020-11-20 14:56:54 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: docker-manifest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: publish
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2021-06-18 23:16:54 +00:00
|
|
|
- cron
|
2020-11-20 14:56:54 +00:00
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-arm
|
2021-09-15 16:00:59 +00:00
|
|
|
- build-arm64
|