A demo to show how to apk of an application
Create a file secrets
with following values,
image_repo: <your Docker v2 repo>
image_registry_username: <your registry username>
image_registry_password: <your registry user password>
Build package and image,
drone exec --trusted --secret-file secrets
Build only image
drone exec --trusted --secret-file secrets --include="publish"
docker run --rm -p 8080:8080 $IMAGE_REPO
Do a curl command like,
curl "localhost:8080?name=$USER"
Should have a response,
{"Prefix":"Hello","Name":"$USER","Message":"Hello,$USER"}
If you want to generate the melange
keys,
drone exec --include 'keygen' --pipeline="keys"