Updated for drone CI
agola/module-packer/Build image The run finished successfully Details
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Pavel Dmitriev 2022-05-19 14:19:44 +03:00
parent 5c1b4d9e1e
commit 3cabab334d
2 changed files with 19 additions and 1 deletions

18
.drone.yml Normal file
View File

@ -0,0 +1,18 @@
---
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} > /kaniko/.docker/config.json
- /kaniko/executor --destination $${IMAGE_PREFIX}:latest

View File

@ -33,5 +33,5 @@ zip -r /tmp/$zip_name .
curl --user ${REG_LOGIN}:${REG_PASSWORD} \
--upload-file /tmp/${zip_name} \
https://mxfox.ru/api/packages/${REG_REPOS}/generic/${mod_name}/${mod_version}-${AGOLA_GIT_COMMITSHA:0:10}/${mod_name}.zip
https://mxfox.ru/api/packages/${REG_REPOS}/generic/${mod_name}/${mod_version}/${mod_name}-${mod_version}-${CI_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:10}.zip