Skip to content

Conversation

@grssmnn
Copy link

@grssmnn grssmnn commented Dec 10, 2021

I had a problem running the kubectl action when using multiple environments running on their own cluster. Once set the kube config didn't change anymore even though I set a new one through KUBE_CONFIG.
Therefore, always overwrite the kube config if a new one is set through env vars.

@laszlof
Copy link

laszlof commented Sep 14, 2022

@grssmnn Ran into this same problem. Did you ever resolve this outside of this unmerged PR?

@grssmnn
Copy link
Author

grssmnn commented Sep 15, 2022

Hi @laszlof
you can add the adapted action to your repo and reference it by path in your workflow:

    steps:
      - uses: ./.github/actions/kubectl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants