Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

GitHub Action to update Kustomize image tag, in different environments, by name.

Notifications You must be signed in to change notification settings

efio-dk/kustomize-update-image-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kustomize-update-image-tag

GitHub Action to update Kustomize image tag, in different environments, by name.

Inputs

imageName

Required The name of the image to update.

newImageTag

Required The new tag to update to.

environment

Optional The name of the environment to update. Default "dev".

defaultFolder

Optional The default folder to find kustomize environment folders. Default "./kustomize".

defaultFileExtension

Optional The default file extension for kustomize files. Default ".yaml".

Example usage

name: Update Kustomize Image Tag
on:
  push:
    branches-ignore:
      - '**'
    tags:
      - 'v*.*.*'
jobs:
  update-image-tag:
  runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: efio-dk/kustomize-update-image-tag@v1
        with:
          imageName: 'test-image'
          newImageTag: '1234'
          environment: 'dev' # (optional, default is "dev")
          defaultFolder: './kustomize' # (optional, default is "./kustomize")
          defaultFileExtension: '.yaml' # (optional, default is ".yaml")

Example for Kustomize dev environment

bases:
- ...
patches:
- ...

images:
- name: test-image
  newName: hello-world
  newTag: nanoserver-sac2016

About

GitHub Action to update Kustomize image tag, in different environments, by name.

Resources

Stars

Watchers

Forks

Packages

No packages published