--- 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} > ~/.docker/config.json - /kaniko/executor --destination $${IMAGE_PREFIX}:latest