module-packer/.drone.yml

18 lines
444 B
YAML

---
kind: pipeline
name: Build image
trigger:
branch:
- master
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 --context `pwd` --destination $${IMAGE_PREFIX}:latest