15 lines
520 B
YAML
15 lines
520 B
YAML
# Registers the Forgejo repo with Argo CD.
|
|
# For SSH access, create a secret with the deploy key instead:
|
|
# kubectl -n argocd create secret generic forgejo-repo-creds \
|
|
# --from-file=sshPrivateKey=/path/to/deploy_key
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: repo-forgejo-gitops
|
|
namespace: argocd
|
|
labels:
|
|
argocd.argoproj.io/secret-type: repository
|
|
stringData:
|
|
type: git
|
|
url: http://localhost:3000/forgejoadmin/gitops-apps.git
|
|
# username/password or sshPrivateKey go here when the repo is private
|