Skip to content

Commit

Permalink
conditional cluster definition
Browse files Browse the repository at this point in the history
ocp_cluster_name=leogit3

delete_ocp_cluster=false
  • Loading branch information
leiicamundi committed May 15, 2024
1 parent addc3c2 commit 02b6fc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/rosa-create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ runs:
curl -O "https://mirror.openshift.com/pub/openshift-v4/clients/rosa/${{ inputs.rosa-cli-version }}/rosa-linux.tar.gz"
tar -xvf rosa-linux.tar.gz
sudo mv rosa /usr/local/bin/rosa
rm -f rosa-linux.tar.gz
rosa version
- name: Install Terraform
Expand Down Expand Up @@ -176,6 +177,7 @@ runs:
echo "server_api=$server_api"
echo "server_api=$server_api" >> "$GITHUB_OUTPUT"
echo "oc login --username '${{ inputs.admin-username }}' --password '${{ inputs.admin-password }}' --server=$server_api" > login_command.txt
oc login --username "${{ inputs.admin-username }}" --password "${{ inputs.admin-password }}" --server=$server_api
kubectl config rename-context $(oc config current-context) "${{ inputs.cluster-name }}"
kubectl config use "${{ inputs.cluster-name }}"
Expand Down

0 comments on commit 02b6fc8

Please sign in to comment.