diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fff0b25 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/pack.sh b/pack.sh index 47894bf..488fe10 100755 --- a/pack.sh +++ b/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