fix(ci): switch to daemonless kaniko builds
This commit is contained in:
parent
130145ebc5
commit
2bfb0774ee
1 changed files with 14 additions and 29 deletions
|
|
@ -2,34 +2,19 @@ when:
|
|||
branch: [main, high-performance]
|
||||
event: push
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:24-dind
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
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-admin-solid
|
||||
dockerfile: Dockerfile.simple
|
||||
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-admin-solid:cache
|
||||
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid: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-admin-solid:${CI_COMMIT_SHA}
|
||||
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:latest
|
||||
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:high-performance-latest
|
||||
--cache=true
|
||||
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid-cache
|
||||
--insecure
|
||||
--insecure-pull
|
||||
--skip-tls-verify
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue