Step script added to create secrets in gh.

Co-authored-by: jmhbnz <mail@jamesblair.net>
This commit is contained in:
Daljit Singh
2021-02-24 16:24:19 +13:00
parent 8e400cad51
commit 19001803ae
3 changed files with 28 additions and 13 deletions

View File

@ -104,11 +104,12 @@ gcloud iam service-accounts keys create key.json \
Once new service account is created and key.json file is created, We will have to upload these details into GitHub and automate the end to end CI/CD workflow.
Tange the shell block below to a shell script by pressing *, b t* in emacs command mode:
Tangle the shell block below to a shell script by pressing *, b t* in emacs command mode:
Once new srvice account is created and key.json file is created, We will have to upload these details into GitHub and automate the end to end CI/CD workflow.
#+begin_src bash :shebang #!/bin/bash :tangle 3-create-github-secrets.sh
TODO
echo $gcp_project_id | gh secret set GCP_PROJECT_ID
cat key.json | jq '.client_email' -r | gh secret set GCP_EMAIL
cat key.json | gh secret set GCP_CREDENTIALS
#+end_src