fix(ci): Switch from buildx to plugins/docker for Harbor auth

The woodpeckerci/plugin-docker-buildx plugin was failing with
"insufficient_scope: authorization failed" when pushing to Harbor,
even though the same credentials worked locally.

Switched to the standard plugins/docker which uses traditional
docker login authentication that may work better with Harbor.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 17:13:58 -06:00
parent e1ed98b038
commit da038d3df2

View File

@@ -85,14 +85,12 @@ steps:
# Requires secrets: harbor_username, harbor_password # Requires secrets: harbor_username, harbor_password
docker-build-api: docker-build-api:
image: woodpeckerci/plugin-docker-buildx image: plugins/docker
settings: settings:
registry: reg.mosaicstack.dev registry: reg.mosaicstack.dev
repo: mosaic/api repo: reg.mosaicstack.dev/mosaic/api
dockerfile: apps/api/Dockerfile dockerfile: apps/api/Dockerfile
context: . context: .
platforms:
- linux/amd64
tags: tags:
- "${CI_COMMIT_SHA:0:8}" - "${CI_COMMIT_SHA:0:8}"
- latest - latest
@@ -100,7 +98,6 @@ steps:
from_secret: harbor_username from_secret: harbor_username
password: password:
from_secret: harbor_password from_secret: harbor_password
debug: true
when: when:
- branch: [main, develop] - branch: [main, develop]
event: [push, manual] event: [push, manual]
@@ -108,14 +105,12 @@ steps:
- build - build
docker-build-web: docker-build-web:
image: woodpeckerci/plugin-docker-buildx image: plugins/docker
settings: settings:
registry: reg.mosaicstack.dev registry: reg.mosaicstack.dev
repo: mosaic/web repo: reg.mosaicstack.dev/mosaic/web
dockerfile: apps/web/Dockerfile dockerfile: apps/web/Dockerfile
context: . context: .
platforms:
- linux/amd64
build_args: build_args:
- NEXT_PUBLIC_API_URL=https://api.mosaicstack.dev - NEXT_PUBLIC_API_URL=https://api.mosaicstack.dev
tags: tags:
@@ -125,7 +120,6 @@ steps:
from_secret: harbor_username from_secret: harbor_username
password: password:
from_secret: harbor_password from_secret: harbor_password
debug: true
when: when:
- branch: [main, develop] - branch: [main, develop]
event: [push, manual] event: [push, manual]
@@ -133,14 +127,12 @@ steps:
- build - build
docker-build-postgres: docker-build-postgres:
image: woodpeckerci/plugin-docker-buildx image: plugins/docker
settings: settings:
registry: reg.mosaicstack.dev registry: reg.mosaicstack.dev
repo: mosaic/postgres repo: reg.mosaicstack.dev/mosaic/postgres
dockerfile: docker/postgres/Dockerfile dockerfile: docker/postgres/Dockerfile
context: docker/postgres context: docker/postgres
platforms:
- linux/amd64
tags: tags:
- "${CI_COMMIT_SHA:0:8}" - "${CI_COMMIT_SHA:0:8}"
- latest - latest
@@ -148,7 +140,6 @@ steps:
from_secret: harbor_username from_secret: harbor_username
password: password:
from_secret: harbor_password from_secret: harbor_password
debug: true
when: when:
- branch: [main, develop] - branch: [main, develop]
event: [push, manual] event: [push, manual]