Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
edit

GitHub Action

Setup Kustomize

v1.6.0

Setup Kustomize

edit

Setup Kustomize

Setup a Kustomize environment and add it to the path

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Kustomize

uses: imranismail/[email protected]

Learn more about this action in imranismail/setup-kustomize

Choose a version

build-test

Description

Install any kustomize version as a step in your workflow

Options

Every argument is optional.

Input Description
github-token PAT (Personal Access Token) for authorizing the repository.
Defaults to ${{ github.token }}.
kustomize-version Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0.
Defaults to *.

Usage

on:
  push:
    branches:
      - master

jobs:
  create-deployment-branch:
    runs-on: ubuntu-latest
    needs:
      - publish-image
    steps:
      - uses: imranismail/setup-kustomize@v1
      - run: |
          kustomize edit set image app:${GITHUB_SHA}
          git add .
          git commit -m "Set `app` image tag to `${GITHUB_SHA}`"
          git push