module-packer/.drone.yml

18 lines
444 B
YAML
Raw Normal View History

2022-05-19 11:19:44 +00:00
---
kind: pipeline
name: Build image
2022-05-19 11:47:53 +00:00
trigger:
branch:
- master
2022-05-19 11:19:44 +00:00
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:
2022-05-19 11:47:53 +00:00
- echo $${DOCKER_AUTH} > /kaniko/.docker/config.json
- /kaniko/executor --context `pwd` --destination $${IMAGE_PREFIX}:latest