Fix wrong context name for kubectl #1
+3
-4
@@ -7,7 +7,7 @@ inputs:
|
||||
default: default
|
||||
kind-config-path:
|
||||
description: Path to kind configuration
|
||||
default: kind-config.yaml
|
||||
default: ${{ forge.action_path }}/kind-config.yaml
|
||||
registry-url:
|
||||
description: Registry URL
|
||||
required: true
|
||||
@@ -38,10 +38,9 @@ runs:
|
||||
- name: Add cleverthis namespace and registry secret
|
||||
shell: bash
|
||||
run: |
|
||||
kubectl --context ${{ inputs.cluster-name }} create namespace cleverthis
|
||||
kubectl --context ${{ inputs.cluster-name }} create secret docker-registry cleverthis-registry \
|
||||
kubectl --context kind-${{ inputs.cluster-name }} create namespace cleverthis
|
||||
kubectl --context kind-${{ inputs.cluster-name }} create secret docker-registry cleverthis-registry \
|
||||
--docker-server=${{ inputs.registry-url }} \
|
||||
--docker-username=${{ inputs.registry-user }} \
|
||||
--docker-password=${{ inputs.registry-password }} \
|
||||
--docker-email=${{ inputs.registry-user }}@cleverthis.com \
|
||||
--namespace=cleverthis
|
||||
|
||||
Reference in New Issue
Block a user