Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 2.82 KB

README.md

File metadata and controls

71 lines (59 loc) · 2.82 KB

Kube-Builder

License

FOSSA Status

Build Status

Build Status

kube-builder is a utility image that includes several tools useful in Drone pipelines for building Docker images and deploying them to Kubernetes.

Included Tools

Usage

To use the kube-builder image in your Drone pipelines, simply specify supporttools/kube-builder as the image name in your .drone.yml file:

Copy code
pipeline:
  build:
    image: supporttools/kube-builder
    commands:
      - make build
      - make push
      - kubectl apply -f deployment.yaml

This example pipeline runs a make command to build a Docker image, then pushes the image to a Docker registry, and finally deploys the Kubernetes manifest in deployment.yaml using kubectl apply.

You can also use the included tools directly in your pipeline commands:

Copy code
pipeline:
  build:
    image: supporttools/kube-builder
    commands:
      - kubectl version --client
      - kustomize build overlays/dev | kubectl apply -f -
      - helm upgrade --install my-app chart/

This example pipeline uses kubectl to check the client version, kustomize to build a Kubernetes manifest from an overlay, and helm to upgrade or install a Helm chart.

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute to kube-builder.

License

kube-builder is licensed under the Apache License, Version 2.0. See the LICENSE file for details.