Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arv1nt3 authored Jan 11, 2024
1 parent 0b1fa56 commit 8ea2380
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
image_name:
description: "The full name of the image (registry/image_name:tag)"
required: true
use_local_image:
description: "Set to true to use a local Docker image with 'kind load docker-image', false to pull from registry"
required: true
default: "false"
cluster-config:
description: "The path to the kind config file"
required: false
Expand Down Expand Up @@ -81,6 +85,12 @@ runs:
uses: helm/[email protected]
with:
config: ${{ inputs.cluster-config }}

- name: Load local Docker image
if: inputs.use_local_image == 'true'
run: |
kind load docker-image ${{ inputs.image_name }}
shell: bash

- run: |
kubectl cluster-info
Expand Down

0 comments on commit 8ea2380

Please sign in to comment.