Updated for drone CI
This commit is contained in:
parent
5c1b4d9e1e
commit
3cabab334d
|
@ -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
|
2
pack.sh
2
pack.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue