Created
March 29, 2024 19:22
-
-
Save uvulpos/cdfecd987a0e7bb10ca1461d30f08b79 to your computer and use it in GitHub Desktop.
Deploy IaC in Pipeline and store kubeconfig as secret [untested]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
deploy-infrastructure: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: install terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: deploy terraform | |
run: ... | |
- name: store kubeconfig as secret | |
run: gh secret set MY_SECRET_FILE --body temp.txt --repo user/repo | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment