This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
atsebay.t/.drone.yml

73 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2020-11-20 14:56:54 +00:00
---
kind: pipeline
type: docker
2021-09-15 16:00:59 +00:00
name: build-arm64
platform:
os: linux
arch: arm64
steps:
2022-03-01 12:46:44 +00:00
- name: build front
2023-11-14 09:03:35 +00:00
image: node:21-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:
2021-09-15 16:00:59 +00:00
- build-arm64