Skip to content

Commit

Permalink
add secret in en vars
Browse files Browse the repository at this point in the history
  • Loading branch information
titigmr committed May 2, 2023
1 parent 4b05019 commit e34157a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/change-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ jobs:
ref: ${{ inputs.branch }}

- uses: azure/k8s-set-context@v3
env:
CONFIG_SECRET: ${{ secrets.SA_SECRET }}
with:
method: service-account
# kubectl config view --minify -o 'jsonpath={.clusters[0].cluster.server}'
k8s-url: ${{ secrets.CLUSTER_URL }}
# kubectl get secret <service-account-secret-name> -n <namespace> -o yaml
k8s-secret: ${( secrets.SA_SECRET }}
k8s-secret: $CONFIG_SECRET

- name: Create secret for Kubernetes
uses: azure/k8s-create-secret@v4
Expand Down

0 comments on commit e34157a

Please sign in to comment.