GitHub Action to update Kustomize image tag, in different environments, by name.
Required The name of the image to update.
Required The new tag to update to.
Optional The name of the environment to update. Default "dev"
.
Optional The default folder to find kustomize environment folders. Default "./kustomize"
.
Optional The default file extension for kustomize files. Default ".yaml"
.
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")
bases:
- ...
patches:
- ...
images:
- name: test-image
newName: hello-world
newTag: nanoserver-sac2016