Repository containing multiple composite Github Actions(multiple declared in a YML which will evaluate to a single Github Action) for CI/CD pipelines.
This project assumes that you have a Github self-hosted runner running on your Kubernetes cluster that will have the necessary rights to perform operations on the Kubernetes API.
Look for for the latest version available on the Releases page of this repository and update the actions @version
.
# Login, build and push Docker image to DockerHub
- name: Build and Push Docker
uses: julanu/composite-actions/docker-build-push@latest
with:
registry_user: userID
registry_pwd: userToken
image_name: repo/image
tag: latest
context: .
dockerfile: ./Dockerfile
platforms: linux/arm64,linux/amd64
build_args: -e "token=value"
# Add Helm repository, update repository, dry-run and install
- name: Helm Deploy to Kubernetes
uses: julanu/composite-actions/helm-deploy@latest
with:
chart_name: my-chart
registry_url: https://charts.helm.sh/stable
registry_name: bitnami
namespace: testing
chart_version: 4.1.14
helm_values_file: values.yaml