|
@@ -1,7 +1,7 @@
|
|
|
---
|
|
|
# Kaniko builds images without docker
|
|
|
#
|
|
|
-# Use 'kubectl create -f kaniko.yaml' to execute
|
|
|
+# Use 'kubectl create -f kaniko.yaml' to test
|
|
|
#
|
|
|
# NOTES:
|
|
|
# If this is your first kaniko, you need to add a token:
|
|
@@ -13,6 +13,19 @@
|
|
|
# --docker-server=https://index.docker.io/v1/ \
|
|
|
# --docker-username=<your-username> \
|
|
|
# --docker-password=<your-password>
|
|
|
+#
|
|
|
+# Then you need to create the kaniko version:
|
|
|
+# echo -n <docker_username>:<docker_password> | base64
|
|
|
+# cat > config.json
|
|
|
+# {
|
|
|
+# "auths": {
|
|
|
+# "https://index.docker.io/v1/": {
|
|
|
+# "auth": "PASTE BASE64 FROM ABOVE"
|
|
|
+# }
|
|
|
+# }
|
|
|
+# }
|
|
|
+# ^D
|
|
|
+# kubectl create secret generic kaniko-secret --from-file config.json
|
|
|
apiVersion: batch/v1
|
|
|
kind: Job
|
|
|
metadata:
|