DroneCI plugin to update image on k8s deployment manifest files on remote GitHub repos (ArgoCD)
949
This Drone CI plugin enables you to seamlessly update your Kubernetes deployment manifest files by committing changes to the image attribute field on your remote GitHub repository. Ideal if you use ArgoCD for managing deployments.
Github: https://github.com/diegoxa/drone-voyage
The following settings changes this plugin's behavior.
Below is an example .drone.yml that uses this plugin.
kind: pipeline
name: default
steps:
- name: run diegoxa/drone-voyage plugin
image: diegoxa/drone-voyage
pull: if-not-exists
settings:
github_repo: [email protected]:user/repo.git
github_ssh_key:
from_secret: deployment_ssh_key
image: diegoxa/drone-voyage:v1-rc.2
deployment_files: k8s/prod/deployment.yaml,k8s/prod/migration.yaml
commit_author: Voyage
commit_email: [email protected]
log_level: info
Build the plugin binary:
scripts/build.sh
Build the plugin image:
docker build -t diegoxa/drone-voyage -f docker/Dockerfile .
Execute the plugin from your current working directory:
docker run --rm \
-e [email protected]:moon/light.git \
-e PLUGIN_GITHUB_SSH_KEY=$GIT_SSH_KEY
-e PLUGIN_IMAGE=my-docker/moon-light:v0.1 \
-e PLUGIN_DEPLOYMENT_FILES=k8s/prod/deployment.yaml,k8s/prod/migration.yaml \
-e PLUGIN_COMMIT_AUTHOR=John Doe \
-e [email protected] \
-e PLUGIN_LOG_LEVEL=info \
-w /drone/src \
diegoxa/drone-voyage
Content type
Image
Digest
sha256:5805c0c05…
Size
13.2 MB
Last updated
about 1 year ago
docker pull diegoxa/drone-voyage