From 20a3298361aa2beff16be4fe3899ad7270f85d35 Mon Sep 17 00:00:00 2001 From: valvin Date: Sun, 27 Nov 2022 16:12:35 +0000 Subject: [PATCH] chore: add drone file --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b465c91 --- /dev/null +++ b/.drone.yml @@ -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} \ No newline at end of file