27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
when:
|
|
branch: [main, high-performance]
|
|
event: push
|
|
|
|
steps:
|
|
- name: build-and-push
|
|
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
|
environment:
|
|
REGISTRY_USERNAME:
|
|
from_secret: REGISTRY_USERNAME
|
|
REGISTRY_PASSWORD:
|
|
from_secret: REGISTRY_PASSWORD
|
|
commands:
|
|
- mkdir -p /kaniko/.docker
|
|
- echo "{\"auths\":{\"docker-registry.registry.svc.cluster.local:5000\":{\"username\":\"${REGISTRY_USERNAME}\",\"password\":\"${REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
|
- >-
|
|
/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
|