fix(ci): use docker cli build/push instead of buildx

This commit is contained in:
Ashwin Kumar 2026-04-10 23:20:24 +02:00
parent a04a7e4ed4
commit 6842d8434e

View file

@ -25,23 +25,15 @@ matrix:
steps: steps:
- name: build-and-push - name: build-and-push
image: woodpeckerci/plugin-docker-buildx:5.0.0 image: docker:24-cli
settings: environment:
insecure: true REGISTRY_USERNAME:
registry: docker-registry.registry.svc.cluster.local:5000
repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}
dockerfile: Dockerfile.simple
build_args:
- SERVICE_NAME=${SERVICE}
tags:
- ${CI_COMMIT_SHA}
- latest
- high-performance-latest
logins:
- registry: docker-registry.registry.svc.cluster.local:5000
username:
from_secret: REGISTRY_USERNAME from_secret: REGISTRY_USERNAME
password: REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD from_secret: REGISTRY_PASSWORD
platforms: linux/amd64 commands:
no_cache: true - echo "${REGISTRY_PASSWORD}" | docker login docker-registry.registry.svc.cluster.local:5000 -u "${REGISTRY_USERNAME}" --password-stdin
- docker build -f Dockerfile.simple --build-arg SERVICE_NAME=${SERVICE} -t docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:${CI_COMMIT_SHA} -t docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:latest -t docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:high-performance-latest .
- docker push docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:${CI_COMMIT_SHA}
- docker push docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:latest
- docker push docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:high-performance-latest