Compare commits

...

4 Commits

Author SHA1 Message Date
Lumpiasty d03c7d3da7 Remove docker build cache
ci/woodpecker/pr/pr-build Pipeline was successful
2026-06-16 23:18:18 +02:00
Renovate 85f522bce1 Merge pull request 'chore(deps): update golang:1.26.4-alpine docker digest to f1ddd9f' (#30) from renovate/golang-1.26.4-alpine into main
ci/woodpecker/push/pr-build Pipeline was successful
ci/woodpecker/push/release-tag Pipeline was successful
2026-06-16 02:12:34 +00:00
Renovate 509762c1b4 chore(deps): update golang:1.26.4-alpine docker digest to f1ddd9f
ci/woodpecker/pr/pr-build Pipeline was successful
2026-06-16 02:01:02 +00:00
Lumpiasty 06083dcf58 Merge pull request 'Speed up build pipeline' (#29) from feat/busybox-crosscompile into main
ci/woodpecker/push/release-tag Pipeline was successful
ci/woodpecker/push/pr-build Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/cron/renovate Pipeline was successful
Reviewed-on: #29
2026-06-16 00:12:58 +00:00
3 changed files with 1 additions and 36 deletions
-33
View File
@@ -8,10 +8,6 @@
#
# Reports pass/fail status back to Gitea, so it shows up as a required check on
# the PR.
#
# Registry credentials are fetched from OpenBao (same AppRole as release.yaml)
# solely to read and write the build cache image. The build itself is still
# dry-run (nothing is published as a release image).
# Changes that can't affect the image don't trigger the build: docs and the
# RouterOS-side script (routeros/**: lives on the router, not in the image).
@@ -33,40 +29,11 @@ when:
exclude: *non_image_paths
steps:
- name: Get registry creds from OpenBao
image: quay.io/openbao/openbao:2.5.4
environment:
VAULT_ADDR: https://openbao.lumpiasty.xyz:8200
ROLE_ID:
from_secret: renovate_role_id
SECRET_ID:
from_secret: renovate_secret_id
commands:
- bao write -field token auth/approle/login
role_id=$ROLE_ID
secret_id=$SECRET_ID > /woodpecker/.vault_id
- export VAULT_TOKEN=$(cat /woodpecker/.vault_id)
- 'printf "PLUGIN_USERNAME=%s\n" "$(bao kv get -mount secret -field REGISTRY_USERNAME container-registry)" > /woodpecker/registry.env'
- 'printf "PLUGIN_PASSWORD=%s\n" "$(bao kv get -mount secret -field REGISTRY_PASSWORD container-registry)" >> /woodpecker/registry.env'
- name: Build all arches (no push)
image: woodpeckerci/plugin-docker-buildx:6.1.0
privileged: true
settings:
registry: gitea.lumpiasty.xyz
repo: mikrotik-tailscale
platforms: linux/amd64,linux/arm64,linux/arm/v7
dry_run: true
build_args:
- OCI_VERSION=ci-${CI_COMMIT_SHA}
cache_images:
- gitea.lumpiasty.xyz/lumpiasty/mikrotik-tailscale:buildcache
env_file: /woodpecker/registry.env
- name: Invalidate OpenBao token
image: quay.io/openbao/openbao:2.5.4
environment:
VAULT_ADDR: https://openbao.lumpiasty.xyz:8200
commands:
- export VAULT_TOKEN=$(cat /woodpecker/.vault_id)
- bao write -f auth/token/revoke-self
-2
View File
@@ -54,8 +54,6 @@ steps:
- stable
build_args:
- OCI_VERSION=${CI_COMMIT_TAG}
cache_images:
- gitea.lumpiasty.xyz/lumpiasty/mikrotik-tailscale:buildcache
# Credentials (PLUGIN_USERNAME / PLUGIN_PASSWORD) come from OpenBao.
env_file: /woodpecker/registry.env
- name: Invalidate OpenBao token
+1 -1
View File
@@ -32,7 +32,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.9.0@sha256:c64defb9ed5a91eacb37f9
# =============================================================================
# Stage 1: Build Tailscale combined binary (cross-compiled, runs natively)
# =============================================================================
FROM --platform=$BUILDPLATFORM golang:1.26.4-alpine@sha256:7a3e50096189ad57c9f9f865e7e4aa8585ed1585248513dc5cda498e2f41812c AS builder
FROM --platform=$BUILDPLATFORM golang:1.26.4-alpine@sha256:f1ddd9fe14fffc091dd98cb4bfa999f32c5fc77d2f2305ea9f0e2595c5437c14 AS builder
# renovate: datasource=github-releases depName=tailscale packageName=tailscale/tailscale versioning=semver
ARG TAILSCALE_VERSION=v1.98.5