ci: use docker cli directly - images already in registry

This commit is contained in:
Tracewebstudio Dev 2026-04-17 00:51:45 +02:00
parent 192a90d128
commit b7f86356db

View file

@ -30,27 +30,18 @@ matrix:
steps:
- name: build-and-push
image: registry.nxtgauge.com/kaniko:2.1.1
settings:
registry:
image: registry.nxtgauge.com/docker:28-cli
environment:
REGISTRY_HOSTPORT:
from_secret: REGISTRY_HOSTPORT
repo: nxtgauge-rust-${SERVICE}
dockerfile: Dockerfile.simple
build_args:
- SERVICE_NAME=${SERVICE}
tags:
- ${CI_COMMIT_SHA}
- latest
- high-performance-latest
username:
REGISTRY_USERNAME:
from_secret: REGISTRY_USERNAME
password:
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
insecure: true
insecure_pull: true
skip_tls_verify: true
platforms: linux/amd64
cache: false
commands:
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-rust-${SERVICE}" --build-arg SERVICE_NAME=${SERVICE} -f Dockerfile.simple .
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-rust-${SERVICE}"
---
when:
@ -59,23 +50,15 @@ when:
steps:
- name: build-and-push-migrate
image: woodpeckerci/plugin-kaniko:2.1.1
settings:
registry:
image: registry.nxtgauge.com/docker:28-cli
environment:
REGISTRY_HOSTPORT:
from_secret: REGISTRY_HOSTPORT
repo: nxtgauge-db-migrate
dockerfile: Dockerfile.migrate
context: .
tags:
- ${CI_COMMIT_SHA}
- latest
- high-performance-latest
username:
REGISTRY_USERNAME:
from_secret: REGISTRY_USERNAME
password:
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
insecure: true
insecure_pull: true
skip_tls_verify: true
platforms: linux/amd64
cache: false
commands:
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-db-migrate" -f Dockerfile.migrate .
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-db-migrate"