chore: add drone file
continuous-integration/drone Build encountered an error Details

This commit is contained in:
valvin 2022-11-27 16:12:35 +00:00
parent 3856f9760b
commit 20a3298361
1 changed files with 18 additions and 0 deletions

18
.drone.yml Normal file
View File

@ -0,0 +1,18 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build_image
image: gcr.io/kaniko-project/executor:v1.7.0-debug
environment:
CI_REGISTRY: git.valvin.fr
CI_REGISTRY_USER: valvin
CI_REGISTRY_IMAGE: git.valvin.fr/valvin/gemini-agate-image
IMAGE_TAG: latest
commands:
- echo "init registry credentials"
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context ${DRONE_WORKSPACE} --dockerfile ${DRONE_WORKSPACE}/Dockerfile --destination ${CI_REGISTRY_IMAGE}:${IMAGE_TAG}