used to store Jenkins file for building test-flask-webapp
# create SSH keypair
ssh-keygen -t rsa -b 4096 -f `pwd`/build-test-flask-webapp-key -C "Read-only key for pulling build repo." -q
# output public key
cat `pwd`/build-test-flask-webapp-key.pub
# output private key
cat `pwd`/build-test-flask-webapp-key
- In this repo, go to "Settings" > "Deploy keys" and click on "Add deploy key"
- Title: Jenkins Key
- Key: Output of build-test-flask-webapp-key.pub
- Click Add Key.
- In Jenkins, navigate to “Manage Jenkins” > “Credentials” > "System" > "Global Credentials"
- Click on “Add Credentials” and choose “SSH Username with private key.”
- ID: build-test-flask-webapp-key
- Username: git
- Private Key: Select "Enter Directly" then click "Add", pasting the output of private key.
- Click "Create".
kubectl create secret docker-registry build-test-flask-webapp \
-n devops-tools \
--docker-server=harbor.ischool.syr.edu \
--docker-username='robot$ist_admins+jenkins_push' \
--docker-password=<REDACTED>