Files
tracker/.drone.yml
T
miczekandCursor 23a2f81898
continuous-integration/drone/push Build was killed
ci: lower Angular build peak memory on Pi
Serialize esbuild/Angular workers and cap the Node heap under the
2GiB Drone step limit so SSR builds trade time for surviving OOM.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 03:42:36 +03:00

62 lines
1.5 KiB
YAML

kind: pipeline
type: docker
name: build-and-push
platform:
os: linux
arch: arm64
steps:
- name: test
image: oven/bun:1-alpine
commands:
- bun install --frozen-lockfile
- bun run test
- name: build
image: oven/bun:1-alpine
environment:
# Serialise Angular workers — lower peak RAM, longer build (Pi-friendly)
NG_BUILD_MAX_WORKERS: "1"
NODE_OPTIONS: "--max-old-space-size=1536"
STRAVA_CLIENT_ID:
from_secret: strava_client_id
STRAVA_REDIRECT_URI:
from_secret: strava_redirect_uri
RIOT_REGION:
from_secret: riot_region
RIOT_SUMMONER_NAME_LOL:
from_secret: riot_summoner_name_lol
RIOT_SUMMONER_NAME_TFT:
from_secret: riot_summoner_name_tft
RIOT_TAG_LINE:
from_secret: riot_tag_line
FACEIT_USER_ID:
from_secret: faceit_user_id
ROCKET_LEAGUE_PLATFORM:
from_secret: rocket_league_platform
ROCKET_LEAGUE_USERNAME:
from_secret: rocket_league_username
commands:
- bun run build:ssr
depends_on:
- test
- name: docker
image: plugins/docker
settings:
repo: registry.zea.lt/miczek/tracker
registry: registry.zea.lt
username:
from_secret: registry_username
password:
from_secret: registry_password
build_args_from_env: true
tags:
- latest
- ${DRONE_COMMIT_SHA:0:7}
when:
branch:
- main
- master
depends_on:
- build