Provides a docker image that can update a version manifest in a github repo in drone.
To update the version of your service in a drone build:
pipeline:
update_manifest:
image: quay.io/ukhomeofficedigital/asl-deploy-bot:latest
secrets:
- github_access_token
commands:
- update
--repo ukhomeoffice/example-repo
--token $${GITHUB_ACCESS_TOKEN}
--file versions.yml
--service example-service
--version $${DRONE_COMMIT_SHA}
when:
branch: master
event: push
repo
required - the github repo containing your manifest filetoken
required - a github access token that provides write access to that repofile
required - the manifest file containing your version dataservice
required - the name of the service to be updatedversion
required - the version of the service to be updatedbranch
optional - the branch to push the change to - defaultmaster
Manifest files can be defined as JSON or YAML, and the type will be inferred from the file extension of the file
option passed.
If the file does not already exist in the repository defined then it will be created.