OCI DevOps - CloudDarsh/OracleCloud GitHub Wiki

create ssh directory

mkdir .ssh

Create public(pem) and private key pair

ssh-keygen -t rsa -f $HOME/.ssh/id-rsa -C '[email protected]'
ssh-keygen -f ~/.ssh/id-rsa.pub -e -m pkcs8

Create api key from the pem format of public key

create a config file in .ssh folder and update below configuration

Host devops.scmservice.*.oci.oraclecloud.com
User [email protected]@upskilloci
IdentityFile <PathToYourSSHPrivateKey>

validate git config

git config user.email "[email protected]"
git config user.name "bac def"

Clone the git repo

image

image

push the code

git push devops main