This commit is contained in:
parent
d1d63abb9d
commit
120b830042
1 changed files with 4 additions and 4 deletions
|
@ -9,10 +9,10 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git src
|
run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git src
|
||||||
- run: "curl --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" https://kubernetes.default.svc/api/v1/namespaces/default/pods"
|
- run: "curl --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" https://kubernetes.default.svc/api/v1/namespaces/default/pods"
|
||||||
- run: nix run nixpkgs#kubectl -- config set-cluster my-cluster --server=https://kubernetes.default --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
# - run: nix run nixpkgs#kubectl -- config set-cluster my-cluster --server=https://kubernetes.default --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||||
- run: nix run nixpkgs#kubectl -- config set-credentials my-service-account --token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
|
# - run: nix run nixpkgs#kubectl -- config set-credentials my-service-account --token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
|
||||||
- run: nix run nixpkgs#kubectl -- config set-context my-context --cluster=my-cluster --user=my-service-account
|
# - run: nix run nixpkgs#kubectl -- config set-context my-context --cluster=my-cluster --user=my-service-account
|
||||||
- run: nix run nixpkgs#kubectl -- config use-context my-context
|
# - run: nix run nixpkgs#kubectl -- config use-context my-context
|
||||||
# - run: nix run nixpkgs#kubectl -- get pods
|
# - run: nix run nixpkgs#kubectl -- get pods
|
||||||
# - run: |
|
# - run: |
|
||||||
# mkdir -p ~/.config/sops/age
|
# mkdir -p ~/.config/sops/age
|
||||||
|
|
Loading…
Reference in a new issue