19 lines
402 B
YAML
19 lines
402 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: Build image
|
||
|
|
||
|
image_pull_secrets:
|
||
|
- dockerconfig
|
||
|
|
||
|
steps:
|
||
|
- name: Build docker image
|
||
|
image: gcr.io/kaniko-project/executor:debug
|
||
|
environment:
|
||
|
DOCKER_AUTH:
|
||
|
from_secret: dockerconfig
|
||
|
IMAGE_PREFIX: mxfox.ru/mxfox/module-packer
|
||
|
|
||
|
commands:
|
||
|
- echo $${DOCKER_AUTH} > /kaniko/.docker/config.json
|
||
|
- /kaniko/executor --destination $${IMAGE_PREFIX}:latest
|