![]() Github: automated build and publish of multi-platform container image with Github Actions.Helm: manually publishing Helm repo on Github using chart-releaser.Helm: automated publishing of Helm repo with Github Actions.Git: find branch name of newly applied tag.GitLab: automated build and publish of multi-platform container image with GitLab pipeline.GitLab: passing values between two jobs in pipeline.Bash: extracting first or last N octets, paths, or domain from string with fixed separator.GitLab: add files to source repository as part of GitLab pipeline.Bash: change into directory just created with git clone.GitLab: invoking Ansible from a GitLab pipeline job.GCP: quota project error when invoking GCP API using ADC application-default.GitLab: self-managed runner for CI/CD jobs on GCP VM instances.GitLab: Continuous Deployment with Agent for Kubernetes and GitLab pipeline.GitLab: least privilege for Kube-API calls from GitLab Agent for Kubernetes.Bash: fixing SSH authentication error “bad ownership or modes for file/directory”.Vault: HashiCorp Vault deployed into Kubernetes cluster for secret management.Vault: Spring Boot web app using Spring Cloud Vault to fetch secrets.Bash: calculate sum from a list of numbers.Vault: NodeJS Express web app using node-vault to fetch secrets.Github: automated Github release of GoLang binary using Github Actions.Github: automated Github release for Spring Boot jar using Github Actions.Ubuntu: install latest git client from PPA to fix ‘unsafe repository’ errors.GCP: Cloud Run with build trigger coming from remote GitHub repository.GitLab: glab official CLI tool for repository operations.If you get upgrade message when running gh sudo apt install gh -only-upgrade # delete repo, first give auth scope to do deletions You will be prompted with a code and then a browser popup to authenticate this command. Key_id=(gh repo deploy-key list | cut -f1) If you want to remove the ssh key for auth loaded earlier. gh repo edit -visibility private Delete ssh key Now we will make this repository private so that only yourself and those you explicitly assign have visibility. Mv gke-acm-kustomize-public gke-acm-kustomize-privateĬd gke-acm-kustomize-private Make visibility private ![]() To prepare for making the visibility of this repo private (not viewable to the public), let’s rename it. Ssh-keygen -t rsa -b 4096 -C "$git_id" -N '' -f testkey If you want to provide authentication into this git repo for a 3rd party integration, then load the public side of an ssh keypair into the repository settings. gh config set -h git_protocol httpsįork one of my github public projects to your own personal fork (will be deleted in later step). ![]() ! First copy your one-time code: 1234-5678 ? Authenticate Git with your GitHub credentials? Yes You will be prompted to press, which opens a browser to for authentication. Sudo apt-key adv -keyserver -recv-key 23F3D4EA75716059 # if GPG error about signatures, add new signing key and try again # apt signing keyĬurl -fsSL | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpgĮcho "deb stable main" | sudo tee /etc/apt//github-cli.list > /dev/null ' -jq '. has a CLI tool that allows you to perform many of the operations you may currently perform in the web UI.Īmong its many uses, the ‘ gh‘ utility will allow you to fork repositories, modify issues, merge PR, and create releases all from the console for ease of use or automation.īelow I will describe its installation on Ubuntu and then examples of usage.įrom the documentation, install ‘gh’ using apt for Debian/Ubuntu. ![]() NumOpenIssues="$(gh api graphql -F owner=$OWNER -F name=$REPO -f query='
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |