ci: Pi-hole DNS, package cache, faster pulls
continuous-integration/drone/push Build is running

Route *.zea.lt via LAN Traefik, reuse bun cache under /drone-cache,
and skip redundant image pulls on the Pi runner.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
miczekandCursor committed 2026-10-15 03:53:22 +03:00
1 parent 23a2f81898
commit ab8223c21a
1 file changed
+20
+20
View File
@@ -1,23 +1,39 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: build-and-push name: build-and-push
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64
# Use Pi-hole so *.zea.lt resolves to Traefik on the LAN (not public hairpin)
dns:
- 192.168.0.64
concurrency:
limit: 1
clone:
depth: 50
steps: steps:
- name: test - name: test
image: oven/bun:1-alpine image: oven/bun:1-alpine
pull: false
environment:
BUN_INSTALL_CACHE_DIR: /drone-cache/bun
commands: commands:
- bun install --frozen-lockfile - bun install --frozen-lockfile
- bun run test - bun run test
- name: build - name: build
image: oven/bun:1-alpine image: oven/bun:1-alpine
pull: false
environment: environment:
# Serialise Angular workers — lower peak RAM, longer build (Pi-friendly) # Serialise Angular workers — lower peak RAM, longer build (Pi-friendly)
NG_BUILD_MAX_WORKERS: "1" NG_BUILD_MAX_WORKERS: "1"
NODE_OPTIONS: "--max-old-space-size=1536" NODE_OPTIONS: "--max-old-space-size=1536"
BUN_INSTALL_CACHE_DIR: /drone-cache/bun
STRAVA_CLIENT_ID: STRAVA_CLIENT_ID:
from_secret: strava_client_id from_secret: strava_client_id
STRAVA_REDIRECT_URI: STRAVA_REDIRECT_URI:
@@ -43,6 +59,7 @@ steps:
- name: docker - name: docker
image: plugins/docker image: plugins/docker
pull: false
settings: settings:
repo: registry.zea.lt/miczek/tracker repo: registry.zea.lt/miczek/tracker
registry: registry.zea.lt registry: registry.zea.lt
@@ -51,6 +68,9 @@ steps:
password: password:
from_secret: registry_password from_secret: registry_password
build_args_from_env: true build_args_from_env: true
# Reuse previous image layers when possible
cache_from:
- registry.zea.lt/miczek/tracker:latest
tags: tags:
- latest - latest
- ${DRONE_COMMIT_SHA:0:7} - ${DRONE_COMMIT_SHA:0:7}