fix(ci): switch to daemonless kaniko builds
This commit is contained in:
parent
9dd3449105
commit
6f41a92dda
1 changed files with 15 additions and 31 deletions
|
|
@ -2,13 +2,6 @@ when:
|
|||
branch: [main, high-performance]
|
||||
event: push
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:24-dind
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
matrix:
|
||||
SERVICE:
|
||||
- gateway
|
||||
|
|
@ -32,27 +25,18 @@ matrix:
|
|||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-docker-buildx:5.0.0
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
settings:
|
||||
insecure: true
|
||||
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: https://index.docker.io/v1/
|
||||
username:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
from_secret: DOCKERHUB_TOKEN
|
||||
platforms: linux/amd64
|
||||
cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:cache
|
||||
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:cache
|
||||
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||
commands:
|
||||
- >-
|
||||
/kaniko/executor
|
||||
--context .
|
||||
--dockerfile Dockerfile.simple
|
||||
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:${CI_COMMIT_SHA}
|
||||
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:latest
|
||||
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:high-performance-latest
|
||||
--build-arg SERVICE_NAME=${SERVICE}
|
||||
--cache=true
|
||||
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}-cache
|
||||
--insecure
|
||||
--insecure-pull
|
||||
--skip-tls-verify
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue