Skip to content

Repository for Github Actions templates/composite-actions. [CI/CD]

Notifications You must be signed in to change notification settings

julanu/composite-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

composite-actions -

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.

Usage of available composite actions:

Look for for the latest version available on the Releases page of this repository and update the actions @version.

1. Docker Build & Push Image to DockerHub

  # 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"

2. Deploy Helm chart to Kubernetes

  # 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

About

Repository for Github Actions templates/composite-actions. [CI/CD]

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published