Sam Therapy
fef9ebb4a6
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
101 lines
1.5 KiB
YAML
101 lines
1.5 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Build (amd64)
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Get Dependencies
|
|
image: node
|
|
commands:
|
|
- yarn --check-cache
|
|
|
|
- name: Lint
|
|
image: node
|
|
depends_on:
|
|
- Get Dependencies
|
|
commands:
|
|
- yarn lint:ci
|
|
|
|
- name: Build
|
|
image: node
|
|
depends_on:
|
|
- Lint
|
|
commands:
|
|
- yarn build
|
|
|
|
- name: Package
|
|
image: node
|
|
depends_on:
|
|
- Build
|
|
commands:
|
|
- yarn package
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
- name: Make Gitea Release
|
|
image: plugins/gitea-release
|
|
depends_on:
|
|
- Package
|
|
settings:
|
|
api_key:
|
|
from_secret: release_api_key
|
|
base_url: https://git.froth.zone
|
|
files:
|
|
- dist/imagebot-*
|
|
when:
|
|
event:
|
|
- tag
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Build (arm64)
|
|
platform:
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: Get Dependencies
|
|
image: node
|
|
commands:
|
|
- yarn --check-cache
|
|
|
|
- name: Lint
|
|
image: node
|
|
depends_on:
|
|
- Get Dependencies
|
|
commands:
|
|
- yarn lint:ci
|
|
|
|
- name: Build
|
|
image: node
|
|
depends_on:
|
|
- Lint
|
|
commands:
|
|
- yarn build
|
|
|
|
- name: Package
|
|
image: node
|
|
depends_on:
|
|
- Build
|
|
commands:
|
|
- yarn package
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
- name: Make Gitea Release
|
|
image: plugins/gitea-release
|
|
depends_on:
|
|
- Package
|
|
settings:
|
|
api_key:
|
|
from_secret: release_api_key
|
|
base_url: https://git.froth.zone
|
|
files:
|
|
- dist/imagebot-*
|
|
when:
|
|
event:
|
|
- tag
|
|
|